Home | History | Annotate | Download | only in text

Lines Matching refs:blob

90 bool GrAtlasTextContext::HasLCD(const SkTextBlob* blob) {
91 SkTextBlobRunIterator it(blob);
103 const SkTextBlob* blob, SkScalar x, SkScalar y,
126 bool hasLCD = HasLCD(blob);
139 key.fUniqueID = blob->uniqueID();
150 // We have to remake the blob because changes may invalidate our masks.
154 cacheBlob = textBlobCache->makeCachedBlob(blob, key, blurRec, skPaint);
157 viewMatrix, props, blob, x, y, drawFilter);
164 GrTextBlobCache::BlobGlyphCount(&glyphCount, &runCount, blob);
169 viewMatrix, props, blob, x, y, drawFilter);
175 cacheBlob = textBlobCache->makeCachedBlob(blob, key, blurRec, skPaint);
177 cacheBlob = textBlobCache->makeBlob(blob);
181 viewMatrix, props, blob, x, y, drawFilter);
194 const SkSurfaceProps& props, const SkTextBlob* blob,
200 SkTextBlobRunIterator it(blob);
271 sk_sp<GrAtlasTextBlob> blob = blobCache->makeBlob(glyphCount, 1);
272 blob->initThrowawayBlob(viewMatrix, x, y);
273 blob->setRunPaintFlags(0, paint.skPaint().getFlags());
276 this->drawDFText(blob.get(), 0, glyphCache, props, paint, scalerContextFlags, viewMatrix,
279 DrawBmpText(blob.get(), 0, glyphCache, props, paint, scalerContextFlags, viewMatrix, text,
282 return blob;
301 sk_sp<GrAtlasTextBlob> blob = blobCache->makeBlob(glyphCount, 1);
302 blob->initThrowawayBlob(viewMatrix, offset.x(), offset.y());
303 blob->setRunPaintFlags(0, paint.skPaint().getFlags());
306 this->drawDFPosText(blob.get(), 0, glyphCache, props, paint, scalerContextFlags, viewMatrix,
309 DrawBmpPosText(blob.get(), 0, glyphCache, props, paint, scalerContextFlags, viewMatrix,
312 return blob;
329 sk_sp<GrAtlasTextBlob> blob(
334 if (blob) {
335 blob
355 sk_sp<GrAtlasTextBlob> blob(this->makeDrawPosTextBlob(
360 if (blob) {
361 blob->flush(restrictedAtlasManager, target, props, fDistanceAdjustTable.get(), paint,
366 void GrAtlasTextContext::DrawBmpText(GrAtlasTextBlob* blob, int runIndex,
379 // Ensure the blob is set for bitmaptext
380 blob->setHasBitmap();
383 DrawBmpTextAsPaths(blob, runIndex, glyphCache, props, paint, scalerContextFlags, viewMatrix,
389 SkGlyphCache* cache = blob->setupCache(runIndex, props, scalerContextFlags, paint, &viewMatrix);
394 BmpAppendGlyph(blob, runIndex, glyphCache, &currStrike,
404 void GrAtlasTextContext::DrawBmpPosText(GrAtlasTextBlob* blob, int runIndex,
419 // Ensure the blob is set for bitmaptext
420 blob->setHasBitmap();
423 DrawBmpPosTextAsPaths(blob, runIndex, glyphCache, props, paint, scalerContextFlags,
429 SkGlyphCache* cache = blob->setupCache(runIndex, props, scalerContextFlags, paint, &viewMatrix);
435 BmpAppendGlyph(blob, runIndex, glyphCache, &currStrike, glyph,
444 void GrAtlasTextContext::DrawBmpTextAsPaths(GrAtlasTextBlob* blob, int runIndex,
473 blob->appendPathGlyph(runIndex, *iterPath, xpos + x, y, iter.getPathScale(), false);
478 fallbackTextHelper.drawText(blob, runIndex, glyphCache, props, origPaint, scalerContextFlags);
481 void GrAtlasTextContext::DrawBmpPosTextAsPaths(GrAtlasTextBlob* blob, int runIndex,
529 blob->appendPathGlyph(runIndex, *path, loc.fX, loc.fY, matrixScale, false);
537 fallbackTextHelper.drawText(blob, runIndex, glyphCache, props, origPaint, scalerContextFlags);
540 void GrAtlasTextContext::BmpAppendGlyph(GrAtlasTextBlob* blob, int runIndex,
574 blob->appendGlyph(runIndex, glyphRect, color, *strike, glyph, skGlyphCache, skGlyph, sx, sy,
614 void GrAtlasTextContext::initDistanceFieldPaint(GrAtlasTextBlob* blob,
656 // Because there can be multiple runs in the blob, we want the overall maxMinScale, and
664 blob->setMinAndMaxScale(dfMaskScaleFloor / scaledTextSize, dfMaskScaleCeil / scaledTextSize);
673 void GrAtlasTextContext::drawDFText(GrAtlasTextBlob* blob, int runIndex,
744 this->drawDFPosText(blob, runIndex, glyphCache, props, paint, scalerContextFlags, viewMatrix,
748 void GrAtlasTextContext::drawDFPosText(GrAtlasTextBlob* blob, int runIndex,
768 this->initDistanceFieldPaint(blob, &dfPaint, &textRatio, viewMatrix);
769 blob->setHasDistanceField();
770 blob->setSubRunHasDistanceFields(runIndex, paint.skPaint().isLCDRenderText(),
780 blob->setupCache(runIndex, props, SkScalerContextFlags::kNone, dfPaint, nullptr);
801 DfAppendGlyph(blob, runIndex, glyphCache, &currStrike, glyph, glyphPos.fX,
813 fallbackTextHelper.drawText(blob, runIndex, glyphCache, props, paint, scalerContextFlags);
817 void GrAtlasTextContext::DfAppendGlyph(GrAtlasTextBlob* blob, int runIndex,
846 blob->appendGlyph(runIndex, glyphRect, color, *strike, glyph, skGlyphCache, skGlyph, sx, sy,
875 void GrAtlasTextContext::FallbackTextHelper::drawText(GrAtlasTextBlob* blob, int runIndex,
881 blob->initOverride(runIndex);
882 blob->setHasBitmap();
901 cache = blob->setupCache(runIndex, props, scalerContextFlags, scaledPaint,
904 cache = blob->setupCache(runIndex, props, scalerContextFlags, paint,
914 GrAtlasTextContext::BmpAppendGlyph(blob, runIndex, glyphCache, &currStrike, glyph,
972 sk_sp<GrAtlasTextBlob> blob(gTextContext->makeDrawTextBlob(
978 return blob->test_makeOp(textLen, 0, 0, viewMatrix, x, y, utilsPaint, gSurfaceProps,