Home
last modified time | relevance | path

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

/external/skia/src/gpu/text/
DGrAtlasTextContext.cpp24 bool GrAtlasTextContext::canDraw(const SkPaint& skPaint, in canDraw() argument
28 return GrTextUtils::CanDrawAsDistanceFields(skPaint, viewMatrix, props, shaderCaps) || in canDraw()
29 !SkDraw::ShouldDrawTextAsPaths(skPaint, viewMatrix); in canDraw()
77 const GrClip& clip, const SkPaint& skPaint, in drawTextBlob() argument
92 const SkMaskFilter* mf = skPaint.getMaskFilter(); in drawTextBlob()
93 bool canCache = !(skPaint.getPathEffect() || in drawTextBlob()
110 ComputeCanonicalColor(skPaint, hasLCD); in drawTextBlob()
114 key.fStyle = skPaint.getStyle(); in drawTextBlob()
121 GrTextUtils::Paint paint(&skPaint); in drawTextBlob()
128 cacheBlob = cache->makeCachedBlob(blob, key, blurRec, skPaint); in drawTextBlob()
[all …]
DGrStencilAndCoverTextContext.cpp55 bool GrStencilAndCoverTextContext::internalCanDraw(const SkPaint& skPaint) { in internalCanDraw() argument
56 if (skPaint.getRasterizer()) { in internalCanDraw()
59 if (skPaint.getMaskFilter()) { in internalCanDraw()
62 if (SkPathEffect* pe = skPaint.getPathEffect()) { in internalCanDraw()
68 return SkPaint::kStroke_Style != skPaint.getStyle() || 0 != skPaint.getStrokeWidth(); in internalCanDraw()
72 const GrClip& clip, const SkPaint& skPaint, in drawText() argument
78 } else if (this->canDraw(skPaint, viewMatrix)) { in drawText()
79 if (skPaint.getTextSize() > 0) { in drawText()
80 TextRun run(skPaint); in drawText()
83 skPaint); in drawText()
[all …]
DGrTextUtils.cpp47 return SkPaintToGrPaintWithPrimitiveColor(context, rtc, this->skPaint(), grPaint); in toGrPaint()
49 return SkPaintToGrPaint(context, rtc, this->skPaint(), viewMatrix, grPaint); in toGrPaint()
55 fModifiedPaint.init(fOriginalPaint->skPaint()); in modifyForRun()
60 *fModifiedPaint.get() = fOriginalPaint->skPaint(); in modifyForRun()
94 paint.skPaint().getTextEncoding(), text, byteLength, in DrawBmpText()
95 {x, y}, viewMatrix, paint.skPaint().getTextAlign(), in DrawBmpText()
130 paint.skPaint().getTextEncoding(), text, byteLength, in DrawBmpPosText()
132 paint.skPaint().getTextAlign(), cache, in DrawBmpPosText()
179 bool GrTextUtils::CanDrawAsDistanceFields(const SkPaint& skPaint, const SkMatrix& viewMatrix, in CanDrawAsDistanceFields() argument
187 SkScalar scaledTextSize = maxScale * skPaint.getTextSize(); in CanDrawAsDistanceFields()
[all …]
DGrStencilAndCoverTextContext.h51 bool canDraw(const SkPaint& skPaint, const SkMatrix&) { in canDraw() argument
52 return this->internalCanDraw(skPaint); in canDraw()
58 const GrClip& clip, const SkPaint& skPaint,
122 TextBlob(uint32_t blobId, const SkTextBlob* skBlob, const SkPaint& skPaint) in TextBlob() argument
123 : fKey(&blobId, 1) { this->init(skBlob, skPaint); } in TextBlob()
125 TextBlob(const Key& key, const SkTextBlob* skBlob, const SkPaint& skPaint) in TextBlob() argument
129 this->init(skBlob, skPaint); in TextBlob()
DGrTextUtils.h55 const SkPaint& skPaint() const { return *fPaint; } in skPaint() function
56 operator const SkPaint&() const { return this->skPaint(); }
88 fPaint = &fOriginalPaint->skPaint(); in RunPaint()
115 static bool CanDrawAsDistanceFields(const SkPaint& skPaint, const SkMatrix& viewMatrix,
149 SkPaint* skPaint,
DGrAtlasTextBlob.cpp55 const SkPaint& skPaint, in setupCache() argument
63 skPaint.getScalerContextDescriptor(&effects, desc, props, scalerContextFlags, viewMatrix); in setupCache()
64 run->fTypeface.reset(SkSafeRef(skPaint.getTypeface())); in setupCache()
204 (fStrokeInfo.fFrameWidth != paint.skPaint().getStrokeWidth() || in mustRegenerate()
205 fStrokeInfo.fMiterLimit != paint.skPaint().getStrokeMiter() || in mustRegenerate()
206 fStrokeInfo.fJoin != paint.skPaint().getStrokeJoin())) { in mustRegenerate()
DGrAtlasTextBlob.h158 const SkPaint& skPaint,
/external/skia/src/gpu/
DGrPathRenderingRenderTargetContext.cpp18 void GrPathRenderingRenderTargetContext::drawText(const GrClip& clip, const SkPaint& skPaint, in drawText() argument
32 fStencilAndCoverTextContext->drawText(this->drawingManager()->getContext(), this, clip, skPaint, in drawText()
37 void GrPathRenderingRenderTargetContext::drawPosText(const GrClip& clip, const SkPaint& skPaint, in drawPosText() argument
54 this->drawingManager()->getContext(), this, clip, skPaint, viewMatrix, in drawPosText()
58 void GrPathRenderingRenderTargetContext::drawTextBlob(const GrClip& clip, const SkPaint& skPaint, in drawTextBlob() argument
76 skPaint, viewMatrix, this->surfaceProps(), blob, x, in drawTextBlob()
DSkGr.cpp445 const SkPaint& skPaint, in skpaint_to_grpaint_impl() argument
454 GrColor4f origColor = SkColorToUnpremulGrColor4f(skPaint.getColor(), rtc->getColorSpace(), in skpaint_to_grpaint_impl()
463 } else if (const SkShader* shader = skPaint.getShader()) { in skpaint_to_grpaint_impl()
465 skPaint.getFilterQuality(), in skpaint_to_grpaint_impl()
501 GrColor paintAlpha = SkColorAlphaToGrColor(skPaint.getColor()); in skpaint_to_grpaint_impl()
535 GrColor paintAlpha = SkColorAlphaToGrColor(skPaint.getColor()); in skpaint_to_grpaint_impl()
550 SkColorFilter* colorFilter = skPaint.getColorFilter(); in skpaint_to_grpaint_impl()
560 colorFilter->filterColor(skPaint.getColor()), nullptr, nullptr)); in skpaint_to_grpaint_impl()
573 SkMaskFilter* maskFilter = skPaint.getMaskFilter(); in skpaint_to_grpaint_impl()
584 if (!skPaint.isSrcOver()) { in skpaint_to_grpaint_impl()
[all …]
DSkGr.h101 const SkPaint& skPaint,
108 const SkPaint& skPaint,
116 const SkPaint& skPaint,
126 const SkPaint& skPaint,
137 const SkPaint& skPaint, GrPaint* grPaint) { in SkPaintToGrPaintWithPrimitiveColor() argument
138 return SkPaintToGrPaintWithXfermode(context, rtc, skPaint, SkMatrix::I(), SkBlendMode::kDst, in SkPaintToGrPaintWithPrimitiveColor()
DSkGpuDevice.cpp1565 const SkPaint& skPaint, in init_vertices_paint() argument
1568 if (hasTexs && skPaint.getShader()) { in init_vertices_paint()
1571 return SkPaintToGrPaintWithXfermode(context, rtc, skPaint, matrix, bmode, false, in init_vertices_paint()
1575 return SkPaintToGrPaint(context, rtc, skPaint, matrix, grPaint); in init_vertices_paint()
1581 return SkPaintToGrPaintWithPrimitiveColor(context, rtc, skPaint, grPaint); in init_vertices_paint()
1584 return (!SkPaintToGrPaintNoShader(context, rtc, skPaint, grPaint)); in init_vertices_paint()
DGrRenderTargetContext.cpp207 void GrRenderTargetContext::drawText(const GrClip& clip, const SkPaint& skPaint, in drawText() argument
217 atlasTextContext->drawText(fContext, this, clip, skPaint, viewMatrix, fSurfaceProps, text, in drawText()
/external/skia/gm/
Dconstcolorprocessor.cpp98 SkPaint skPaint; in onDraw() local
100 skPaint.setShader(fShader); in onDraw()
102 skPaint.setColor(kPaintColors[paintType]); in onDraw()
104 SkAssertResult(SkPaintToGrPaint(context, renderTargetContext, skPaint, 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.cpp726 SkPaint skPaint; in FlushPath() local
727 skPaint.setAntiAlias(true); in FlushPath()
729 skPaint.setBlendMode(SkBlendMode::kPlus); in FlushPath()
732 m_pDriver->PaintStroke(&skPaint, &m_drawState, skMatrix); in FlushPath()
741 skPaint.getFillPath(m_skPath, &strokePath); in FlushPath()
748 skPaint.setStyle(SkPaint::kFill_Style); in FlushPath()
749 skPaint.setColor(m_fillColor); in FlushPath()
753 DebugShowSkiaDrawPath(skCanvas, skPaint, *fillPath); in FlushPath()
754 skCanvas->drawPath(*fillPath, skPaint); in FlushPath()
757 skPaint.setStyle(SkPaint::kStroke_Style); in FlushPath()
[all …]
/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.h163 const SkPaint& skPaint,