Home
last modified time | relevance | path

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

/third_party/skia/docs/examples/
DSurface_MakeRaster.cpp14 const uint32_t* colorPtr = pixmap.addr32(); in draw() local
15 SkPMColor pmWhite = colorPtr[0]; in draw()
21 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x'); in draw()
23 colorPtr += rowBytes / sizeof(colorPtr[0]); in draw()
DSurface_MakeRasterN32Premul.cpp12 const uint32_t* colorPtr = pixmap.addr32(); in draw() local
13 SkPMColor pmWhite = colorPtr[0]; in draw()
19 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x'); in draw()
21 colorPtr += surface->width(); in draw()
DSurface_MakeRaster_2.cpp13 const uint32_t* colorPtr = pixmap.addr32(); in draw() local
14 SkPMColor pmWhite = colorPtr[0]; in draw()
20 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x'); in draw()
22 colorPtr += info.width(); in draw()
DSurface_MakeRasterDirectReleaseProc.cpp21 SkPMColor* colorPtr = (SkPMColor*) pixels; in draw() local
22 SkPMColor pmWhite = colorPtr[0]; in draw()
28 SkDebugf("%c", *colorPtr++ == pmWhite ? '-' : 'x'); in draw()
/third_party/flutter/skia/docs/examples/
DSurface_MakeRaster.cpp14 const uint32_t* colorPtr = pixmap.addr32(); in draw() local
15 SkPMColor pmWhite = colorPtr[0]; in draw()
21 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x'); in draw()
23 colorPtr += rowBytes / sizeof(colorPtr[0]); in draw()
DSurface_MakeRasterN32Premul.cpp12 const uint32_t* colorPtr = pixmap.addr32(); in draw() local
13 SkPMColor pmWhite = colorPtr[0]; in draw()
19 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x'); in draw()
21 colorPtr += surface->width(); in draw()
DSurface_MakeRaster_2.cpp13 const uint32_t* colorPtr = pixmap.addr32(); in draw() local
14 SkPMColor pmWhite = colorPtr[0]; in draw()
20 SkDebugf("%c", colorPtr[x] == pmWhite ? '-' : 'x'); in draw()
22 colorPtr += info.width(); in draw()
DSurface_MakeRasterDirectReleaseProc.cpp21 SkPMColor* colorPtr = (SkPMColor*) pixels; in draw() local
22 SkPMColor pmWhite = colorPtr[0]; in draw()
28 SkDebugf("%c", *colorPtr++ == pmWhite ? '-' : 'x'); in draw()
/third_party/skia/src/utils/
DSkParseColor.cpp342 const char* SkParse::FindColor(const char* value, SkColor* colorPtr) { in FindColor() argument
343 unsigned int oldAlpha = SkColorGetA(*colorPtr); in FindColor()
356 *colorPtr = SkColorSetARGB(a, r, g, b); in FindColor()
361 *colorPtr = hex; in FindColor()
380 return FindNamedColor(value, strlen(value), colorPtr); in FindColor()
/third_party/flutter/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()
/third_party/flutter/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()
/third_party/flutter/skia/modules/canvaskit/
Dinterface.js467 var colorPtr = 0; // enscriptem doesn't like undefined for nullptr
470 colorPtr = colors.build();
472 colorPtr = copy1dArray(colors, CanvasKit.HEAPU32);
476 this._drawAtlas(atlas, dstXformPtr, srcRectPtr, colorPtr, dstXforms.length,
485 if (colorPtr && !colors.build) {
486 CanvasKit._free(colorPtr);
833 var colorPtr = copy1dArray(colors, CanvasKit.HEAPU32);
842 var lgs = CanvasKit._MakeLinearGradientShader(start, end, colorPtr, posPtr,
845 var lgs = CanvasKit._MakeLinearGradientShader(start, end, colorPtr, posPtr,
849 CanvasKit._free(colorPtr);
[all …]
/third_party/skia/modules/canvaskit/
Dmemory.js157 colorPtr: nullptr, property
162 result.colorPtr = copy1dArray(colors, 'HEAPF32');
166 result.colorPtr = copy1dArray(colors, 'HEAPU32');
170 result.colorPtr = copyColorArray(colors);
358 function copyColorFromWasm(colorPtr) { argument
361 rv[i] = CanvasKit.HEAPF32[colorPtr/4 + i]; // divide by 4 to cast to float.
Dinterface.js513 var colorPtr = copy1dArray(assureIntColors(colors), 'HEAPU32');
523 this._drawAtlasCubic(atlas, dstXformPtr, srcRectPtr, colorPtr, count, blendMode,
534 this._drawAtlasOptions(atlas, dstXformPtr, srcRectPtr, colorPtr, count, blendMode,
540 freeArraysThatAreNotMallocedByUsers(colorPtr, colors);
1015 …var lgs = CanvasKit.Shader._MakeLinearGradient(_scratchFourFloatsAPtr, cPtrInfo.colorPtr, cPtrInfo…
1018 freeArraysThatAreNotMallocedByUsers(cPtrInfo.colorPtr, colors);
1030 var rgs = CanvasKit.Shader._MakeRadialGradient(center[0], center[1], radius, cPtrInfo.colorPtr,
1034 freeArraysThatAreNotMallocedByUsers(cPtrInfo.colorPtr, colors);
1048 …var sgs = CanvasKit.Shader._MakeSweepGradient(cx, cy, cPtrInfo.colorPtr, cPtrInfo.colorType, posPt…
1053 freeArraysThatAreNotMallocedByUsers(cPtrInfo.colorPtr, colors);
[all …]
Dparagraph_bindings.cpp44 WASMPointerF32 colorPtr; member
125 ts.setColor(toSkColor4f(s.colorPtr).toSkColor()); in toTextStyle()
601 .field("_colorPtr", &SimpleTextStyle::colorPtr) in EMSCRIPTEN_BINDINGS()
Dparagraph.js227 textStyle['_shadowColorsPtr'] = copyFlexibleColorArray(shadowColors).colorPtr;
/third_party/skia/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()
/third_party/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()
/third_party/flutter/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()
/third_party/flutter/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()
/third_party/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()