Home
last modified time | relevance | path

Searched refs:colorPtr (Results 1 – 12 of 12) sorted by relevance

/external/skia/src/utils/
DSkParseColor.cpp241 const char* SkParse::FindColor(const char* value, SkColor* colorPtr) { in FindColor() argument
242 unsigned int oldAlpha = SkColorGetA(*colorPtr); in FindColor()
255 *colorPtr = SkColorSetARGB(a, r, g, b); in FindColor()
260 *colorPtr = hex; in FindColor()
279 return FindNamedColor(value, strlen(value), colorPtr); in FindColor()
/external/skqp/src/utils/
DSkParseColor.cpp241 const char* SkParse::FindColor(const char* value, SkColor* colorPtr) { in FindColor() argument
242 unsigned int oldAlpha = SkColorGetA(*colorPtr); in FindColor()
255 *colorPtr = SkColorSetARGB(a, r, g, b); in FindColor()
260 *colorPtr = hex; in FindColor()
279 return FindNamedColor(value, strlen(value), colorPtr); in FindColor()
/external/skia/modules/canvaskit/
Dinterface.js588 var colorPtr = copy1dArray(colors, CanvasKit.HEAP32);
597 var lgs = CanvasKit._MakeLinearGradientShader(start, end, colorPtr, posPtr,
600 var lgs = CanvasKit._MakeLinearGradientShader(start, end, colorPtr, posPtr,
604 CanvasKit._free(colorPtr);
610 var colorPtr = copy1dArray(colors, CanvasKit.HEAP32);
619 var rgs = CanvasKit._MakeRadialGradientShader(center, radius, colorPtr, posPtr,
622 var rgs = CanvasKit._MakeRadialGradientShader(center, radius, colorPtr, posPtr,
626 CanvasKit._free(colorPtr);
633 var colorPtr = copy1dArray(colors, CanvasKit.HEAP32);
644 colorPtr, posPtr, colors.length, mode, flags, localMatrix);
[all …]
/external/skqp/experimental/canvaskit/
Dinterface.js695 var colorPtr = copy1dArray(colors, CanvasKit.HEAP32);
704 var lgs = CanvasKit._MakeLinearGradientShader(start, end, colorPtr, posPtr,
707 var lgs = CanvasKit._MakeLinearGradientShader(start, end, colorPtr, posPtr,
711 CanvasKit._free(colorPtr);
717 var colorPtr = copy1dArray(colors, CanvasKit.HEAP32);
726 var rgs = CanvasKit._MakeRadialGradientShader(center, radius, colorPtr, posPtr,
729 var rgs = CanvasKit._MakeRadialGradientShader(center, radius, colorPtr, posPtr,
733 CanvasKit._free(colorPtr);
740 var colorPtr = copy1dArray(colors, CanvasKit.HEAP32);
751 colorPtr, posPtr, colors.length, mode, flags, localMatrix);
[all …]
/external/skqp/src/shaders/
DSkShader.cpp67 bool SkShaderBase::asLuminanceColor(SkColor* colorPtr) const { in asLuminanceColor()
69 if (nullptr == colorPtr) { in asLuminanceColor()
70 colorPtr = &storage; in asLuminanceColor()
72 if (this->onAsLuminanceColor(colorPtr)) { in asLuminanceColor()
73 *colorPtr = SkColorSetA(*colorPtr, 0xFF); // we only return opaque in asLuminanceColor()
/external/skia/src/shaders/
DSkShader.cpp68 bool SkShaderBase::asLuminanceColor(SkColor* colorPtr) const { in asLuminanceColor()
70 if (nullptr == colorPtr) { in asLuminanceColor()
71 colorPtr = &storage; in asLuminanceColor()
73 if (this->onAsLuminanceColor(colorPtr)) { in asLuminanceColor()
74 *colorPtr = SkColorSetA(*colorPtr, 0xFF); // we only return opaque in asLuminanceColor()
/external/skia/tests/
DSwizzlerTest.cpp41 uint32_t* colorPtr = (uint32_t*) indexPtr; in check_fill() local
47 REPORTER_ASSERT(r, 0 == colorPtr[x]); in check_fill()
61 colorPtr = (uint32_t*) indexPtr; in check_fill()
/external/skqp/tests/
DSwizzlerTest.cpp41 uint32_t* colorPtr = (uint32_t*) indexPtr; in check_fill() local
47 REPORTER_ASSERT(r, 0 == colorPtr[x]); in check_fill()
61 colorPtr = (uint32_t*) indexPtr; in check_fill()
/external/skqp/docs/
DSkSurface_Reference.bmh87 SkPMColor* colorPtr = (SkPMColor*) pixels;
88 SkPMColor pmWhite = colorPtr[0];
94 SkDebugf("%c", *colorPtr++ == pmWhite ? '-' : 'x');
128 const uint32_t* colorPtr = pixmap.addr32();
129 SkPMColor pmWhite = colorPtr[0];
135 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x');
137 colorPtr += rowBytes / sizeof(colorPtr[0]);
167 const uint32_t* colorPtr = pixmap.addr32();
168 SkPMColor pmWhite = colorPtr[0];
174 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x');
[all …]
/external/skia/docs/
DSkSurface_Reference.bmh100 SkPMColor* colorPtr = (SkPMColor*) pixels;
101 SkPMColor pmWhite = colorPtr[0];
107 SkDebugf("%c", *colorPtr++ == pmWhite ? '-' : 'x');
141 const uint32_t* colorPtr = pixmap.addr32();
142 SkPMColor pmWhite = colorPtr[0];
148 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x');
150 colorPtr += rowBytes / sizeof(colorPtr[0]);
180 const uint32_t* colorPtr = pixmap.addr32();
181 SkPMColor pmWhite = colorPtr[0];
187 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x');
[all …]
/external/skqp/src/codec/
DSkBmpStandardCodec.cpp179 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); in initializeSwizzler() local
192 fSwizzler = SkSwizzler::Make(encodedInfo, colorPtr, swizzlerInfo, swizzlerOptions); in initializeSwizzler()
/external/skia/src/codec/
DSkBmpStandardCodec.cpp179 const SkPMColor* colorPtr = get_color_ptr(fColorTable.get()); in initializeSwizzler() local
192 fSwizzler = SkSwizzler::Make(encodedInfo, colorPtr, swizzlerInfo, swizzlerOptions); in initializeSwizzler()