/third_party/flutter/skia/src/gpu/ |
D | SkGr.cpp | 323 const SkPaint& skPaint, in skpaint_to_grpaint_impl() argument 329 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), colorSpaceInfo); in skpaint_to_grpaint_impl() 331 GrFPArgs fpArgs(context, &viewM, skPaint.getFilterQuality(), &colorSpaceInfo); in skpaint_to_grpaint_impl() 340 } else if (const auto* shader = as_SB(skPaint.getShader())) { in skpaint_to_grpaint_impl() 372 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl() 402 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl() 417 SkColorFilter* colorFilter = skPaint.getColorFilter(); in skpaint_to_grpaint_impl() 432 SkMaskFilterBase* maskFilter = as_MFB(skPaint.getMaskFilter()); in skpaint_to_grpaint_impl() 444 if (!skPaint.isSrcOver()) { in skpaint_to_grpaint_impl() 445 grPaint->setXPFactory(SkBlendMode_AsXPFactory(skPaint.getBlendMode())); in skpaint_to_grpaint_impl() [all …]
|
D | SkGr.h | 84 const SkPaint& skPaint, 91 const SkPaint& skPaint, 99 const SkPaint& skPaint, 107 const SkPaint& skPaint, 118 const SkPaint& skPaint, in SkPaintToGrPaintWithPrimitiveColor() argument 120 return SkPaintToGrPaintWithXfermode(context, dstColorSpaceInfo, skPaint, SkMatrix::I(), in SkPaintToGrPaintWithPrimitiveColor() 128 const SkPaint& skPaint,
|
D | SkGpuDevice.cpp | 1437 const SkPaint& skPaint, const SkMatrix& matrix, SkBlendMode bmode, in init_vertices_paint() argument 1439 if (hasTexs && skPaint.getShader()) { in init_vertices_paint() 1442 return SkPaintToGrPaintWithXfermode(context, colorSpaceInfo, skPaint, matrix, bmode, in init_vertices_paint() 1446 return SkPaintToGrPaint(context, colorSpaceInfo, skPaint, matrix, grPaint); in init_vertices_paint() 1452 return SkPaintToGrPaintWithPrimitiveColor(context, colorSpaceInfo, skPaint, grPaint); in init_vertices_paint() 1455 return SkPaintToGrPaintNoShader(context, colorSpaceInfo, skPaint, grPaint); in init_vertices_paint()
|
D | GrRenderTargetContext.cpp | 91 void makeGrPaint(GrMaskFormat maskFormat, const SkPaint& skPaint, const SkMatrix& viewMatrix, in makeGrPaint() argument 96 SkPaintToGrPaintWithPrimitiveColor(context, colorSpaceInfo, skPaint, grPaint); in makeGrPaint() 98 SkPaintToGrPaint(context, colorSpaceInfo, skPaint, viewMatrix, grPaint); in makeGrPaint()
|
/third_party/skia/src/gpu/ |
D | SkGr.cpp | 416 const SkPaint& skPaint, in skpaint_to_grpaint_impl() argument 422 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), dstColorInfo); in skpaint_to_grpaint_impl() 433 if (const SkShaderBase* shader = as_SB(skPaint.getShader())) { in skpaint_to_grpaint_impl() 462 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl() 470 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl() 507 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl() 521 SkColorFilter* colorFilter = skPaint.getColorFilter(); in skpaint_to_grpaint_impl() 536 SkMaskFilterBase* maskFilter = as_MFB(skPaint.getMaskFilter()); in skpaint_to_grpaint_impl() 545 if (SkPaintPriv::ShouldDither(skPaint, GrColorTypeToSkColorType(ct)) && paintFP != nullptr) { in skpaint_to_grpaint_impl() 552 if (auto bm = skPaint.asBlendMode()) { in skpaint_to_grpaint_impl() [all …]
|
D | SkGr.h | 88 const SkPaint& skPaint, 97 const SkPaint& skPaint, 106 const SkPaint& skPaint, 117 const SkPaint& skPaint, in SkPaintToGrPaintWithPrimitiveColor() argument 120 return SkPaintToGrPaintWithBlend(context, dstColorInfo, skPaint, matrixProvider, in SkPaintToGrPaintWithPrimitiveColor()
|
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/compositor/ |
D | recording_canvas.dart | 17 final skPaint = js.JsObject(canvasKit['SkPaint']); 19 skPaint.callMethod('setColor', <int>[paint.color.value]); 30 skPaint.callMethod('setStyle', <js.JsObject>[skPaintStyle]); 32 skPaint.callMethod('setAntiAlias', <bool>[paint.isAntiAlias]); 33 return skPaint; 154 final js.JsObject skPaint = _makeSkPaint(paint); 155 skCanvas.callMethod('drawRect', <js.JsObject>[skRect, skPaint]);
|
D | canvas.dart | 99 final js.JsObject skPaint = js.JsObject(canvasKit['SkPaint']); 101 skPaint.callMethod('setColor', <int>[paint.color.value]); 103 return skPaint;
|
/third_party/flutter/skia/gm/ |
D | constcolorprocessor.cpp | 109 SkPaint skPaint; in onDraw() local 111 skPaint.setShader(fShader); in onDraw() 113 skPaint.setColor(kPaintColors[paintType]); in onDraw() 116 skPaint, viewMatrix, &grPaint)); in onDraw()
|
D | mixedtextblobs.cpp | 28 static void draw_blob(SkCanvas* canvas, const SkTextBlob* blob, const SkPaint& skPaint, in draw_blob() argument 34 SkPaint paint(skPaint); in draw_blob()
|
/third_party/skia/src/gpu/ops/ |
D | AtlasTextOp.cpp | 488 const SkPaint& skPaint, in CreateOpTestingOnly() argument 500 auto glyphRunList = builder.textToGlyphRunList(font, skPaint, text, textLen, drawOrigin); in CreateOpTestingOnly() 510 sk_sp<GrTextBlob> blob = GrTextBlob::Make(glyphRunList, skPaint, drawMatrix, control, painter); in CreateOpTestingOnly() 520 nullptr, mtxProvider, glyphRunList.origin(), skPaint, sdc, nullptr); in CreateOpTestingOnly() 533 SkPaint skPaint; in GR_DRAW_OP_TEST_DEFINE() local 534 skPaint.setColor(random->nextU()); in GR_DRAW_OP_TEST_DEFINE() 553 return skgpu::v1::AtlasTextOp::CreateOpTestingOnly(sdc, skPaint, font, matrixProvider, in GR_DRAW_OP_TEST_DEFINE()
|
/third_party/flutter/skia/src/gpu/text/ |
D | GrTextContext.cpp | 243 SkPaint skPaint; in GR_DRAW_OP_TEST_DEFINE() local 244 skPaint.setColor(random->nextU()); in GR_DRAW_OP_TEST_DEFINE() 264 skPaint, font, viewMatrix, text, xInt, yInt); in GR_DRAW_OP_TEST_DEFINE()
|
/third_party/skia/gm/ |
D | mixedtextblobs.cpp | 28 static void draw_blob(SkCanvas* canvas, const SkTextBlob* blob, const SkPaint& skPaint, in draw_blob() argument 34 SkPaint paint(skPaint); in draw_blob()
|
/third_party/flutter/skia/src/atlastext/ |
D | SkAtlasTextTarget.cpp | 107 void makeGrPaint(GrMaskFormat, const SkPaint& skPaint, const SkMatrix&, in makeGrPaint() argument 109 grPaint->setColor4f(skPaint.getColor4f().premul()); in makeGrPaint()
|
/third_party/skia/src/xps/ |
D | SkXPSDevice.cpp | 968 HRESULT SkXPSDevice::createXpsBrush(const SkPaint& skPaint, in createXpsBrush() argument 971 const SkShader *shader = skPaint.getShader(); in createXpsBrush() 973 HR(this->createXpsSolidColorBrush(skPaint.getColor(), 0xFF, brush)); in createXpsBrush() 992 SkAlpha alpha = skPaint.getAlpha(); in createXpsBrush() 998 const SkColor color = skPaint.getColor(); in createXpsBrush() 1011 SkAlpha alpha = skPaint.getAlpha(); in createXpsBrush() 1025 skPaint.getAlpha(), in createXpsBrush() 1034 skPaint.getAlpha(), in createXpsBrush() 1065 skPaint.getAlpha(), in createXpsBrush() 1070 HR(this->createXpsSolidColorBrush(skPaint.getColor(), 0xFF, brush)); in createXpsBrush()
|
D | SkXPSDevice.h | 159 const SkPaint& skPaint,
|
/third_party/flutter/skia/src/xps/ |
D | SkXPSDevice.cpp | 972 HRESULT SkXPSDevice::createXpsBrush(const SkPaint& skPaint, in createXpsBrush() argument 975 const SkShader *shader = skPaint.getShader(); in createXpsBrush() 977 HR(this->createXpsSolidColorBrush(skPaint.getColor(), 0xFF, brush)); in createXpsBrush() 996 SkAlpha alpha = skPaint.getAlpha(); in createXpsBrush() 1002 const SkColor color = skPaint.getColor(); in createXpsBrush() 1015 SkAlpha alpha = skPaint.getAlpha(); in createXpsBrush() 1029 skPaint.getAlpha(), in createXpsBrush() 1038 skPaint.getAlpha(), in createXpsBrush() 1069 skPaint.getAlpha(), in createXpsBrush() 1074 HR(this->createXpsSolidColorBrush(skPaint.getColor(), 0xFF, brush)); in createXpsBrush()
|
D | SkXPSDevice.h | 161 const SkPaint& skPaint,
|
/third_party/flutter/skia/src/core/ |
D | SkGlyphRunPainter.cpp | 937 const SkPaint& skPaint, in createOp_TestingOnly() argument 954 SkPMColor4f filteredColor = generate_filtered_color(skPaint, rtc->colorSpaceInfo()); in createOp_TestingOnly() 959 builder.drawTextUTF8(skPaint, font, text, textLen, origin); in createOp_TestingOnly() 970 skPaint, scalerContextFlags, viewMatrix, surfaceProps, in createOp_TestingOnly() 974 return blob->test_makeOp(textLen, 0, 0, viewMatrix, x, y, skPaint, filteredColor, surfaceProps, in createOp_TestingOnly()
|
/third_party/skia/src/gpu/v1/ |
D | Device.cpp | 89 const SkPaint& skPaint, in init_vertices_paint() argument 99 skPaint, in init_vertices_paint() 101 skPaint.getShader() ? bmode : SkBlendMode::kDst, in init_vertices_paint() 104 return SkPaintToGrPaint(rContext, colorInfo, skPaint, matrixProvider, grPaint); in init_vertices_paint()
|