Home
last modified time | relevance | path

Searched refs:fSkPaint (Results 1 – 9 of 9) sorted by relevance

/external/chromium_org/third_party/skia/src/gpu/
DGrStencilAndCoverTextContext.cpp67 SkDrawCacheProc glyphCacheProc = fSkPaint.getDrawCacheProc(); in drawText()
74 if (fSkPaint.getTextAlign() != SkPaint::kLeft_Align) { in drawText()
92 if (fSkPaint.getTextAlign() == SkPaint::kCenter_Align) { in drawText()
147 SkDrawCacheProc glyphCacheProc = fSkPaint.getDrawCacheProc(); in drawPosText()
151 if (SkPaint::kLeft_Align == fSkPaint.getTextAlign()) { in drawPosText()
175 SkTextAlignProcScalar alignProc(fSkPaint.getTextAlign()); in drawPosText()
278 fGlyphCache = fSkPaint.detachCache(&fDeviceProperties, &fContextInitialMatrix, false); in init()
285 SkStrokeRec gpuStroke = SkStrokeRec(fSkPaint); in init()
286 fSkPaint.setStyle(SkPaint::kFill_Style); in init()
295 } else if (fSkPaint.isFakeBoldText() && in init()
[all …]
DGrDistanceFieldTextContext.cpp190 SkColorFilter* colorFilter = fSkPaint.getColorFilter(); in flushGlyphs()
192 filteredColor = colorFilter->filterColor(fSkPaint.getColor()); in flushGlyphs()
194 filteredColor = fSkPaint.getColor(); in flushGlyphs()
214 int a = SkColorGetA(fSkPaint.getColor()); in flushGlyphs()
456 SkScalar textSize = fSkPaint.getTextSize(); in init()
471 fSkPaint.setTextSize(SkIntToScalar(kSmallDFFontSize)); in init()
474 fSkPaint.setTextSize(SkIntToScalar(kMediumDFFontSize)); in init()
477 fSkPaint.setTextSize(SkIntToScalar(kLargeDFFontSize)); in init()
480 fUseLCDText = fSkPaint.isLCDRenderText(); in init()
482 fSkPaint.setLCDRenderText(false); in init()
[all …]
DGrBitmapTextContext.cpp129 int a = SkColorGetA(fSkPaint.getColor()); in flushGlyphs()
133 drawState->setBlendConstant(skcolor_to_grcolor_nopremultiply(fSkPaint.getColor())); in flushGlyphs()
192 SkDrawCacheProc glyphCacheProc = fSkPaint.getDrawCacheProc(); in drawText()
194 SkAutoGlyphCache autoCache(fSkPaint, &fDeviceProperties, &fContext->getMatrix()); in drawText()
207 if (fSkPaint.getTextAlign() != SkPaint::kLeft_Align) { in drawText()
215 if (fSkPaint.getTextAlign() == SkPaint::kCenter_Align) { in drawText()
285 SkDrawCacheProc glyphCacheProc = fSkPaint.getDrawCacheProc(); in drawPosText()
287 SkAutoGlyphCache autoCache(fSkPaint, &fDeviceProperties, &fContext->getMatrix()); in drawPosText()
297 SkTextAlignProc alignProc(fSkPaint.getTextAlign()); in drawPosText()
319 if (SkPaint::kLeft_Align == fSkPaint.getTextAlign()) { in drawPosText()
[all …]
DGrTextContext.h52 SkPaint fSkPaint; variable
DGrTextContext.cpp35 fSkPaint = skPaint; in init()
/external/skia/src/gpu/
DGrDistanceFieldTextContext.cpp117 SkColorFilter* colorFilter = fSkPaint.getColorFilter(); in flushGlyphs()
119 filteredColor = colorFilter->filterColor(fSkPaint.getColor()); in flushGlyphs()
121 filteredColor = fSkPaint.getColor(); in flushGlyphs()
147 int a = SkColorGetA(fSkPaint.getColor()); in flushGlyphs()
370 if (fSkPaint.getTextSize() <= kSmallDFFontLimit) { in init()
371 fTextRatio = fSkPaint.getTextSize()/kSmallDFFontSize; in init()
372 fSkPaint.setTextSize(SkIntToScalar(kSmallDFFontSize)); in init()
373 } else if (fSkPaint.getTextSize() <= kMediumDFFontLimit) { in init()
374 fTextRatio = fSkPaint.getTextSize()/kMediumDFFontSize; in init()
375 fSkPaint.setTextSize(SkIntToScalar(kMediumDFFontSize)); in init()
[all …]
DGrBitmapTextContext.cpp129 int a = SkColorGetA(fSkPaint.getColor()); in flushGlyphs()
133 drawState->setBlendConstant(skcolor_to_grcolor_nopremultiply(fSkPaint.getColor())); in flushGlyphs()
194 SkDrawCacheProc glyphCacheProc = fSkPaint.getDrawCacheProc(); in drawText()
196 SkAutoGlyphCache autoCache(fSkPaint, &fDeviceProperties, &fContext->getMatrix()); in drawText()
209 if (fSkPaint.getTextAlign() != SkPaint::kLeft_Align) { in drawText()
217 if (fSkPaint.getTextAlign() == SkPaint::kCenter_Align) { in drawText()
287 SkDrawCacheProc glyphCacheProc = fSkPaint.getDrawCacheProc(); in drawPosText()
289 SkAutoGlyphCache autoCache(fSkPaint, &fDeviceProperties, &fContext->getMatrix()); in drawPosText()
299 SkTextAlignProc alignProc(fSkPaint.getTextAlign()); in drawPosText()
321 if (SkPaint::kLeft_Align == fSkPaint.getTextAlign()) { in drawPosText()
[all …]
DGrTextContext.h52 SkPaint fSkPaint; variable
DGrTextContext.cpp35 fSkPaint = skPaint; in init()