Home
last modified time | relevance | path

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

/external/skia/src/gpu/text/
DGrAtlasTextContext.cpp27 bool GrAtlasTextContext::canDraw(const SkPaint& skPaint, in canDraw() argument
31 return GrTextUtils::CanDrawAsDistanceFields(skPaint, viewMatrix, props, shaderCaps) || in canDraw()
32 !SkDraw::ShouldDrawTextAsPaths(skPaint, viewMatrix); in canDraw()
70 const GrClip& clip, const SkPaint& skPaint, in drawTextBlob() argument
85 const SkMaskFilter* mf = skPaint.getMaskFilter(); in drawTextBlob()
86 bool canCache = !(skPaint.getPathEffect() || in drawTextBlob()
102 ComputeCanonicalColor(skPaint, hasLCD); in drawTextBlob()
106 key.fStyle = skPaint.getStyle(); in drawTextBlob()
115 if (!SkPaintToGrPaint(context, skPaint, viewMatrix, &grPaint)) { in drawTextBlob()
120 if (cacheBlob->mustRegenerate(skPaint, grPaint.getColor(), blurRec, viewMatrix, x, y)) { in drawTextBlob()
[all …]
DGrStencilAndCoverTextContext.cpp59 bool GrStencilAndCoverTextContext::internalCanDraw(const SkPaint& skPaint) { in internalCanDraw() argument
60 if (skPaint.getRasterizer()) { in internalCanDraw()
63 if (skPaint.getMaskFilter()) { in internalCanDraw()
66 if (SkPathEffect* pe = skPaint.getPathEffect()) { in internalCanDraw()
72 return SkPaint::kStroke_Style != skPaint.getStyle() || 0 != skPaint.getStrokeWidth(); in internalCanDraw()
77 const SkPaint& skPaint, const SkMatrix& viewMatrix, in drawText() argument
83 } else if (this->canDraw(skPaint, viewMatrix)) { in drawText()
84 TextRun run(skPaint); in drawText()
88 clipBounds, fFallbackTextContext, skPaint); in drawText()
90 } else if (fFallbackTextContext->canDraw(skPaint, viewMatrix, props, in drawText()
[all …]
DGrTextUtils.cpp42 const SkSurfaceProps& props, const SkPaint& skPaint, in DrawBmpText() argument
61 skPaint, &viewMatrix); in DrawBmpText()
65 skPaint.getTextEncoding(), text, byteLength, in DrawBmpText()
66 {x, y}, viewMatrix, skPaint.getTextAlign(), in DrawBmpText()
82 const SkSurfaceProps& props, const SkPaint& skPaint, in DrawBmpPosText() argument
103 skPaint, &viewMatrix); in DrawBmpPosText()
107 skPaint.getTextEncoding(), text, byteLength, in DrawBmpPosText()
109 skPaint.getTextAlign(), cache, in DrawBmpPosText()
156 bool GrTextUtils::CanDrawAsDistanceFields(const SkPaint& skPaint, const SkMatrix& viewMatrix, in CanDrawAsDistanceFields() argument
164 SkScalar scaledTextSize = maxScale*skPaint.getTextSize(); in CanDrawAsDistanceFields()
[all …]
DGrAtlasTextBlob.cpp55 const SkPaint& skPaint, in setupCache() argument
62 skPaint.getScalerContextDescriptor(desc, props, fakeGamma, viewMatrix); in setupCache()
63 run->fTypeface.reset(SkSafeRef(skPaint.getTypeface())); in setupCache()
258 const SkPaint& skPaint, const SkSurfaceProps& props, in createBatch() argument
264 uint8_t paintAlpha = skPaint.getAlpha(); in createBatch()
273 SkColorFilter* colorFilter = skPaint.getColorFilter(); in createBatch()
275 filteredColor = colorFilter->filterColor(skPaint.getColor()); in createBatch()
277 filteredColor = skPaint.getColor(); in createBatch()
303 const SkPaint& skPaint, const SkSurfaceProps& props, in flushRun() argument
315 skPaint, props, in flushRun()
[all …]
DGrStencilAndCoverTextContext.h54 bool canDraw(const SkPaint& skPaint, const SkMatrix&) { in canDraw() argument
55 return this->internalCanDraw(skPaint); in canDraw()
61 const GrClip& clip, const SkPaint& skPaint,
124 TextBlob(uint32_t blobId, const SkTextBlob* skBlob, const SkPaint& skPaint) in TextBlob() argument
125 : fKey(&blobId, 1) { this->init(skBlob, skPaint); } in TextBlob()
127 TextBlob(const Key& key, const SkTextBlob* skBlob, const SkPaint& skPaint) in TextBlob() argument
131 this->init(skBlob, skPaint); in TextBlob()
DGrTextUtils.h53 static bool CanDrawAsDistanceFields(const SkPaint& skPaint, const SkMatrix& viewMatrix,
58 const SkPaint& skPaint, GrColor color,
92 SkPaint* skPaint,
DGrAtlasTextBlob.h152 const SkPaint& skPaint,
185 const SkPaint& skPaint,
198 const SkPaint& skPaint,
278 const SkPaint& skPaint, const SkSurfaceProps& props,
293 const SkPaint& skPaint, const SkSurfaceProps& props,
298 const GrClip& clip, const SkPaint& skPaint,
306 const GrClip& clip, const SkPaint& skPaint,
502 const SkPaint& skPaint, const SkSurfaceProps& props,
DGrAtlasTextContext.h58 const SkPaint& skPaint, GrColor,
/external/skia/src/gpu/
DSkGr.cpp378 const SkPaint& skPaint, in skpaint_to_grpaint_impl() argument
384 grPaint->setAntiAlias(skPaint.isAntiAlias()); in skpaint_to_grpaint_impl()
393 } else if (const SkShader* shader = skPaint.getShader()) { in skpaint_to_grpaint_impl()
395 skPaint.getFilterQuality())); in skpaint_to_grpaint_impl()
416 GrColor shaderInput = SkColorToOpaqueGrColor(skPaint.getColor()); in skpaint_to_grpaint_impl()
434 GrColor paintAlpha = SkColorAlphaToGrColor(skPaint.getColor()); in skpaint_to_grpaint_impl()
441 grPaint->setColor(SkColorToUnpremulGrColor(skPaint.getColor())); in skpaint_to_grpaint_impl()
449 GrConstColorProcessor::Create(SkColorToOpaqueGrColor(skPaint.getColor()), in skpaint_to_grpaint_impl()
463 grPaint->setColor(SkColorToOpaqueGrColor(skPaint.getColor())); in skpaint_to_grpaint_impl()
465 GrColor paintAlpha = SkColorAlphaToGrColor(skPaint.getColor()); in skpaint_to_grpaint_impl()
[all …]
DGrPathRenderingDrawContext.cpp19 const SkPaint& skPaint, in drawText() argument
33 skPaint, viewMatrix, this->surfaceProps(), in drawText()
38 const SkPaint& skPaint, in drawPosText() argument
53 grPaint, skPaint, viewMatrix, this->surfaceProps(), in drawPosText()
58 void GrPathRenderingDrawContext::drawTextBlob(const GrClip& clip, const SkPaint& skPaint, in drawTextBlob() argument
72 skPaint, viewMatrix, this->surfaceProps(), blob, x, in drawTextBlob()
DSkGrPriv.h49 const SkPaint& skPaint,
55 const SkPaint& skPaint,
62 const SkPaint& skPaint,
71 const SkPaint& skPaint,
81 inline bool SkPaintToGrPaintWithPrimitiveColor(GrContext* context, const SkPaint& skPaint, in SkPaintToGrPaintWithPrimitiveColor() argument
83 return SkPaintToGrPaintWithXfermode(context, skPaint, SkMatrix::I(), SkXfermode::kDst_Mode, in SkPaintToGrPaintWithPrimitiveColor()
DGrDrawContext.cpp109 const SkPaint& skPaint, in drawText() argument
122 fAtlasTextContext->drawText(fContext, this, clip, grPaint, skPaint, viewMatrix, fSurfaceProps, in drawText()
127 const SkPaint& skPaint, in drawPosText() argument
141 fAtlasTextContext->drawPosText(fContext, this, clip, grPaint, skPaint, viewMatrix, in drawPosText()
147 void GrDrawContext::drawTextBlob(const GrClip& clip, const SkPaint& skPaint, in drawTextBlob() argument
160 fAtlasTextContext->drawTextBlob(fContext, this, clip, skPaint, viewMatrix, fSurfaceProps, blob, in drawTextBlob()
/external/skia/gm/
Dconstcolorprocessor.cpp102 SkPaint skPaint; in onDraw() local
104 skPaint.setShader(fShader); in onDraw()
106 skPaint.setColor(kPaintColors[paintType]); in onDraw()
108 SkAssertResult(SkPaintToGrPaint(context, skPaint, viewMatrix, &grPaint)); in onDraw()
Dmixedtextblobs.cpp19 static void draw_blob(SkCanvas* canvas, const SkTextBlob* blob, const SkPaint& skPaint, in draw_blob() argument
25 SkPaint paint(skPaint); in draw_blob()
/external/skia/src/device/xps/
DSkXPSDevice.cpp990 HRESULT SkXPSDevice::createXpsBrush(const SkPaint& skPaint, in createXpsBrush() argument
993 const SkShader *shader = skPaint.getShader(); in createXpsBrush()
995 HR(this->createXpsSolidColorBrush(skPaint.getColor(), 0xFF, brush)); in createXpsBrush()
1014 SkAlpha alpha = skPaint.getAlpha(); in createXpsBrush()
1020 const SkColor color = skPaint.getColor(); in createXpsBrush()
1033 SkAlpha alpha = skPaint.getAlpha(); in createXpsBrush()
1047 skPaint.getAlpha(), in createXpsBrush()
1056 skPaint.getAlpha(), in createXpsBrush()
1086 skPaint.getAlpha(), in createXpsBrush()
1091 HR(this->createXpsSolidColorBrush(skPaint.getColor(), 0xFF, brush)); in createXpsBrush()
/external/skia/include/device/xps/
DSkXPSDevice.h198 const SkPaint& skPaint,