Home
last modified time | relevance | path

Searched refs:skPaint (Results 1 – 23 of 23) sorted by relevance

/external/skqp/src/gpu/
DSkGr.cpp374 const SkPaint& skPaint, in skpaint_to_grpaint_impl() argument
380 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), colorSpaceInfo, in skpaint_to_grpaint_impl()
383 const GrFPArgs fpArgs(context, &viewM, skPaint.getFilterQuality(), &colorSpaceInfo); in skpaint_to_grpaint_impl()
391 } else if (const auto* shader = as_SB(skPaint.getShader())) { in skpaint_to_grpaint_impl()
423 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl()
453 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl()
468 SkColorFilter* colorFilter = skPaint.getColorFilter(); in skpaint_to_grpaint_impl()
483 SkMaskFilterBase* maskFilter = as_MFB(skPaint.getMaskFilter()); in skpaint_to_grpaint_impl()
493 if (!skPaint.isSrcOver()) { in skpaint_to_grpaint_impl()
494 grPaint->setXPFactory(SkBlendMode_AsXPFactory(skPaint.getBlendMode())); in skpaint_to_grpaint_impl()
[all …]
DSkGr.h74 const SkPaint& skPaint,
81 const SkPaint& skPaint,
89 const SkPaint& skPaint,
97 const SkPaint& skPaint,
108 const SkPaint& skPaint, GrPaint* grPaint) { in SkPaintToGrPaintWithPrimitiveColor() argument
109 return SkPaintToGrPaintWithXfermode(context, dstColorSpaceInfo, skPaint, SkMatrix::I(), in SkPaintToGrPaintWithPrimitiveColor()
DSkGpuDevice.cpp1582 const SkPaint& skPaint, const SkMatrix& matrix, SkBlendMode bmode, in init_vertices_paint() argument
1584 if (hasTexs && skPaint.getShader()) { in init_vertices_paint()
1587 return SkPaintToGrPaintWithXfermode(context, colorSpaceInfo, skPaint, matrix, bmode, in init_vertices_paint()
1591 return SkPaintToGrPaint(context, colorSpaceInfo, skPaint, matrix, grPaint); in init_vertices_paint()
1597 return SkPaintToGrPaintWithPrimitiveColor(context, colorSpaceInfo, skPaint, grPaint); in init_vertices_paint()
1600 return SkPaintToGrPaintNoShader(context, colorSpaceInfo, skPaint, grPaint); in init_vertices_paint()
DGrRenderTargetContext.cpp79 void makeGrPaint(GrMaskFormat maskFormat, const SkPaint& skPaint, const SkMatrix& viewMatrix, in makeGrPaint() argument
84 SkPaintToGrPaintWithPrimitiveColor(context, colorSpaceInfo, skPaint, grPaint); in makeGrPaint()
86 SkPaintToGrPaint(context, colorSpaceInfo, skPaint, viewMatrix, grPaint); in makeGrPaint()
/external/skia/src/gpu/
DSkGr.cpp329 const SkPaint& skPaint, in skpaint_to_grpaint_impl() argument
335 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), dstColorInfo); in skpaint_to_grpaint_impl()
347 if (const SkShaderBase* shader = as_SB(skPaint.getShader())) { in skpaint_to_grpaint_impl()
375 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl()
396 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl()
410 SkColorFilter* colorFilter = skPaint.getColorFilter(); in skpaint_to_grpaint_impl()
425 SkMaskFilterBase* maskFilter = as_MFB(skPaint.getMaskFilter()); in skpaint_to_grpaint_impl()
437 if (!skPaint.isSrcOver()) { in skpaint_to_grpaint_impl()
438 grPaint->setXPFactory(SkBlendMode_AsXPFactory(skPaint.getBlendMode())); in skpaint_to_grpaint_impl()
443 if (SkPaintPriv::ShouldDither(skPaint, GrColorTypeToSkColorType(ct)) && paintFP != nullptr) { in skpaint_to_grpaint_impl()
[all …]
DSkGr.h88 const SkPaint& skPaint,
95 const SkPaint& skPaint,
104 const SkPaint& skPaint,
113 const SkPaint& skPaint,
122 const SkPaint& skPaint,
134 const SkPaint& skPaint, in SkPaintToGrPaintWithPrimitiveColor() argument
137 return SkPaintToGrPaintWithBlend(context, dstColorInfo, skPaint, matrixProvider, in SkPaintToGrPaintWithPrimitiveColor()
145 const SkPaint& skPaint,
DSkGpuDevice.cpp829 const SkPaint& skPaint, argument
834 if (skPaint.getShader()) {
837 return SkPaintToGrPaintWithBlend(context, colorInfo, skPaint, matrixProvider, bmode,
841 return SkPaintToGrPaint(context, colorInfo, skPaint, matrixProvider, grPaint);
846 return SkPaintToGrPaintWithPrimitiveColor(context, colorInfo, skPaint, matrixProvider,
850 return SkPaintToGrPaintNoShader(context, colorInfo, skPaint, matrixProvider, grPaint);
/external/skqp/src/gpu/text/
DGrTextContext.cpp136 SkPaint* skPaint, in InitDistanceFieldPaint() argument
195 skPaint->setMaskFilter(GrSDFMaskFilter::Make()); in InitDistanceFieldPaint()
227 SkPaint skPaint; in GR_DRAW_OP_TEST_DEFINE() local
228 skPaint.setColor(random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
248 skPaint, font, viewMatrix, text, xInt, yInt); in GR_DRAW_OP_TEST_DEFINE()
DGrTextContext.h68 SkPaint* skPaint,
DGrTextBlob.cpp59 void GrTextBlob::Run::setupFont(const SkPaint& skPaint, in setupFont() argument
63 SkScalerContextEffects effects{skPaint}; in setupFont()
DGrTextBlob.h448 void setupFont(const SkPaint& skPaint,
/external/skqp/gm/
Dconstcolorprocessor.cpp96 SkPaint skPaint; in onDraw() local
98 skPaint.setShader(fShader); in onDraw()
100 skPaint.setColor(kPaintColors[paintType]); in onDraw()
103 skPaint, viewMatrix, &grPaint)); in onDraw()
Dmixedtextblobs.cpp20 static void draw_blob(SkCanvas* canvas, const SkTextBlob* blob, const SkPaint& skPaint, in draw_blob() argument
26 SkPaint paint(skPaint); in draw_blob()
/external/pdfium/core/fxge/skia/
Dfx_skia_device.cpp780 SkPaint skPaint; in FlushPath() local
781 skPaint.setAntiAlias(true); in FlushPath()
783 skPaint.setBlendMode(SkBlendMode::kPlus); in FlushPath()
786 m_pDriver->PaintStroke(&skPaint, &m_drawState, skMatrix); in FlushPath()
796 skPaint.getFillPath(m_skPath, &strokePath); in FlushPath()
808 skPaint.setStyle(SkPaint::kFill_Style); in FlushPath()
809 skPaint.setColor(m_fillColor); in FlushPath()
813 DebugShowSkiaDrawPath(m_pDriver.Get(), skCanvas, skPaint, *fillPath); in FlushPath()
814 skCanvas->drawPath(*fillPath, skPaint); in FlushPath()
817 skPaint.setStyle(SkPaint::kStroke_Style); in FlushPath()
[all …]
/external/skia/src/gpu/ops/
DGrAtlasTextOp.cpp490 const SkPaint& skPaint, in CreateOpTestingOnly() argument
502 auto glyphRunList = builder.textToGlyphRunList(font, skPaint, text, textLen, drawOrigin); in CreateOpTestingOnly()
512 sk_sp<GrTextBlob> blob = GrTextBlob::Make(glyphRunList, skPaint, drawMatrix, control, painter); in CreateOpTestingOnly()
522 nullptr, mtxProvider, glyphRunList, skPaint, rtc, nullptr); in CreateOpTestingOnly()
529 SkPaint skPaint; in GR_DRAW_OP_TEST_DEFINE() local
530 skPaint.setColor(random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
549 return GrAtlasTextOp::CreateOpTestingOnly(sdc, skPaint, font, matrixProvider, text, xInt, yInt); in GR_DRAW_OP_TEST_DEFINE()
DGrAtlasTextOp.h120 const SkPaint& skPaint,
/external/skia/gm/
Dmixedtextblobs.cpp28 static void draw_blob(SkCanvas* canvas, const SkTextBlob* blob, const SkPaint& skPaint, in draw_blob() argument
34 SkPaint paint(skPaint); in draw_blob()
/external/skqp/src/atlastext/
DSkAtlasTextTarget.cpp106 void makeGrPaint(GrMaskFormat, const SkPaint& skPaint, const SkMatrix&, in makeGrPaint() argument
108 grPaint->setColor4f(skPaint.getColor4f().premul()); in makeGrPaint()
/external/skia/src/xps/
DSkXPSDevice.cpp965 HRESULT SkXPSDevice::createXpsBrush(const SkPaint& skPaint, in createXpsBrush() argument
968 const SkShader *shader = skPaint.getShader(); in createXpsBrush()
970 HR(this->createXpsSolidColorBrush(skPaint.getColor(), 0xFF, brush)); in createXpsBrush()
989 SkAlpha alpha = skPaint.getAlpha(); in createXpsBrush()
995 const SkColor color = skPaint.getColor(); in createXpsBrush()
1008 SkAlpha alpha = skPaint.getAlpha(); in createXpsBrush()
1022 skPaint.getAlpha(), in createXpsBrush()
1031 skPaint.getAlpha(), in createXpsBrush()
1062 skPaint.getAlpha(), in createXpsBrush()
1067 HR(this->createXpsSolidColorBrush(skPaint.getColor(), 0xFF, brush)); in createXpsBrush()
DSkXPSDevice.h157 const SkPaint& skPaint,
/external/skqp/src/xps/
DSkXPSDevice.cpp968 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()
DSkXPSDevice.h165 const SkPaint& skPaint,
/external/skqp/src/core/
DSkGlyphRunPainter.cpp879 const SkPaint& skPaint, in createOp_TestingOnly() argument
891 SkPMColor4f filteredColor = generate_filtered_color(skPaint, rtc->colorSpaceInfo()); in createOp_TestingOnly()
896 builder.drawTextUTF8(skPaint, font, text, textLen, origin); in createOp_TestingOnly()
907 skPaint, scalerContextFlags, viewMatrix, surfaceProps, in createOp_TestingOnly()
911 return blob->test_makeOp(textLen, 0, 0, viewMatrix, x, y, skPaint, filteredColor, surfaceProps, in createOp_TestingOnly()