Lines Matching refs:GrAtlasTextBlob
8 #include "GrAtlasTextBlob.h"
20 GrAtlasTextBlob* GrAtlasTextBlob::Create(GrMemoryPool* pool, int glyphCount, int runCount) {
21 // We allocate size for the GrAtlasTextBlob itself, plus size for the vertices array,
24 size_t size = sizeof(GrAtlasTextBlob) +
27 sizeof(GrAtlasTextBlob::Run) * runCount;
34 GrAtlasTextBlob* cacheBlob = new (allocation) GrAtlasTextBlob;
38 cacheBlob->fVertices = sizeof(GrAtlasTextBlob) + reinterpret_cast<unsigned char*>(cacheBlob);
40 cacheBlob->fRuns = reinterpret_cast<GrAtlasTextBlob::Run*>(cacheBlob->fGlyphs + glyphCount);
44 new (&cacheBlob->fRuns[i]) GrAtlasTextBlob::Run;
52 SkGlyphCache* GrAtlasTextBlob::setupCache(int runIndex,
57 GrAtlasTextBlob::Run* run = &fRuns[runIndex];
67 void GrAtlasTextBlob::appendGlyph(int runIndex,
155 void GrAtlasTextBlob::appendLargeGlyph(GrGlyph* glyph, GrFontScaler* scaler, const SkGlyph& skGlyph,
165 fBigGlyphs.push_back(GrAtlasTextBlob::BigGlyph(*glyph->fPath, x, y, scale, applyVM));
168 bool GrAtlasTextBlob::mustRegenerate(const SkPaint& paint,
253 inline GrDrawBatch* GrAtlasTextBlob::createBatch(
300 void GrAtlasTextBlob::flushRun(GrDrawContext* dc, GrPipelineBuilder* pipelineBuilder,
342 void GrAtlasTextBlob::flushBigGlyphs(GrContext* context, GrDrawContext* dc,
348 GrAtlasTextBlob::BigGlyph& bigGlyph = fBigGlyphs[i];
363 void GrAtlasTextBlob::flushRunAsPaths(GrContext* context, GrDrawContext* dc,
402 void GrAtlasTextBlob::flushCached(GrContext* context,
435 void GrAtlasTextBlob::flushThrowaway(GrContext* context,
457 GrDrawBatch* GrAtlasTextBlob::test_createBatch(
464 const GrAtlasTextBlob::Run::SubRunInfo& info = fRuns[run].fSubRunInfo[subRun];
469 void GrAtlasTextBlob::AssertEqual(const GrAtlasTextBlob& l, const GrAtlasTextBlob& r) {
555 void GrAtlasTextBlob::Run::SubRunInfo::computeTranslation(const SkMatrix& viewMatrix,