Home
last modified time | relevance | path

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

12

/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.cpp381 const SkPaint& skPaint, in skpaint_to_grpaint_impl() argument
387 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), colorSpaceInfo, in skpaint_to_grpaint_impl()
390 GrFPArgs fpArgs(context, &viewM, skPaint.getFilterQuality(), &colorSpaceInfo); in skpaint_to_grpaint_impl()
399 } else if (const auto* shader = as_SB(skPaint.getShader())) { in skpaint_to_grpaint_impl()
431 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl()
461 float paintAlpha = skPaint.getColor4f().fA; in skpaint_to_grpaint_impl()
476 SkColorFilter* colorFilter = skPaint.getColorFilter(); in skpaint_to_grpaint_impl()
491 SkMaskFilterBase* maskFilter = as_MFB(skPaint.getMaskFilter()); in skpaint_to_grpaint_impl()
503 if (!skPaint.isSrcOver()) { in skpaint_to_grpaint_impl()
504 grPaint->setXPFactory(SkBlendMode_AsXPFactory(skPaint.getBlendMode())); in skpaint_to_grpaint_impl()
[all …]
DSkGr.h75 const SkPaint& skPaint,
82 const SkPaint& skPaint,
90 const SkPaint& skPaint,
98 const SkPaint& skPaint,
109 const SkPaint& skPaint, in SkPaintToGrPaintWithPrimitiveColor() argument
111 return SkPaintToGrPaintWithXfermode(context, dstColorSpaceInfo, skPaint, SkMatrix::I(), in SkPaintToGrPaintWithPrimitiveColor()
119 const SkPaint& skPaint,
DSkGpuDevice.cpp1422 const SkPaint& skPaint, const SkMatrix& matrix, SkBlendMode bmode, in init_vertices_paint() argument
1424 if (hasTexs && skPaint.getShader()) { in init_vertices_paint()
1427 return SkPaintToGrPaintWithXfermode(context, colorSpaceInfo, skPaint, matrix, bmode, in init_vertices_paint()
1431 return SkPaintToGrPaint(context, colorSpaceInfo, skPaint, matrix, grPaint); in init_vertices_paint()
1437 return SkPaintToGrPaintWithPrimitiveColor(context, colorSpaceInfo, skPaint, grPaint); in init_vertices_paint()
1440 return SkPaintToGrPaintNoShader(context, colorSpaceInfo, skPaint, grPaint); in init_vertices_paint()
/external/pdfium/core/fxge/skia/
Dfx_skia_device.cpp749 SkPaint skPaint; in FlushPath() local
750 skPaint.setAntiAlias(true); in FlushPath()
752 skPaint.setBlendMode(SkBlendMode::kPlus); in FlushPath()
755 m_pDriver->PaintStroke(&skPaint, &m_drawState, skMatrix); in FlushPath()
764 skPaint.getFillPath(m_skPath, &strokePath); in FlushPath()
771 skPaint.setStyle(SkPaint::kFill_Style); in FlushPath()
772 skPaint.setColor(m_fillColor); in FlushPath()
776 DebugShowSkiaDrawPath(m_pDriver.Get(), skCanvas, skPaint, *fillPath); in FlushPath()
777 skCanvas->drawPath(*fillPath, skPaint); in FlushPath()
780 skPaint.setStyle(SkPaint::kStroke_Style); in FlushPath()
[all …]
/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/skia/gm/
Dconstcolorprocessor.cpp85 SkPaint skPaint; in onDraw() local
87 skPaint.setShader(fShader); in onDraw()
89 skPaint.setColor(kPaintColors[paintType]); in onDraw()
92 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/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/skia/src/gpu/text/
DGrTextContext.cpp244 SkPaint skPaint; in GR_DRAW_OP_TEST_DEFINE() local
245 skPaint.setColor(random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
265 skPaint, font, viewMatrix, text, xInt, yInt); in GR_DRAW_OP_TEST_DEFINE()
/external/skia/src/atlastext/
DSkAtlasTextTarget.cpp106 void makeGrPaint(GrMaskFormat, const SkPaint& skPaint, const SkMatrix&, in makeGrPaint() argument
108 grPaint->setColor4f(skPaint.getColor4f().premul()); in makeGrPaint()
/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.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.h161 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/skia/src/core/
DSkGlyphRunPainter.cpp946 const SkPaint& skPaint, in createOp_TestingOnly() argument
963 SkPMColor4f filteredColor = generate_filtered_color(skPaint, rtc->colorSpaceInfo()); in createOp_TestingOnly()
968 builder.drawTextUTF8(skPaint, font, text, textLen, origin); in createOp_TestingOnly()
979 skPaint, scalerContextFlags, viewMatrix, surfaceProps, in createOp_TestingOnly()
983 return blob->test_makeOp(textLen, 0, 0, viewMatrix, x, y, skPaint, filteredColor, surfaceProps, in createOp_TestingOnly()
/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()

12