Index: src/gpu/text/GrAtlasTextBlob.cpp |
diff --git a/src/gpu/text/GrAtlasTextBlob.cpp b/src/gpu/text/GrAtlasTextBlob.cpp |
index f79f82598f6570b4d1a78184180ac8bd78288bbc..05fb5ad415ff16b48633cfd9bdbc51839916d754 100644 |
--- a/src/gpu/text/GrAtlasTextBlob.cpp |
+++ b/src/gpu/text/GrAtlasTextBlob.cpp |
@@ -232,12 +232,13 @@ bool GrAtlasTextBlob::mustRegenerate(SkScalar* outTransX, SkScalar* outTransY, |
return false; |
} |
-GrDrawBatch* GrAtlasTextBlob::createBatch(const Run::SubRunInfo& info, |
- int glyphCount, int run, int subRun, |
- GrColor color, SkScalar transX, SkScalar transY, |
- const SkPaint& skPaint, const SkSurfaceProps& props, |
- const GrDistanceFieldAdjustTable* distanceAdjustTable, |
- GrBatchFontCache* cache) { |
+inline GrDrawBatch* GrAtlasTextBlob::createBatch( |
+ const Run::SubRunInfo& info, |
+ int glyphCount, int run, int subRun, |
+ GrColor color, SkScalar transX, SkScalar transY, |
+ const SkPaint& skPaint, const SkSurfaceProps& props, |
+ const GrDistanceFieldAdjustTable* distanceAdjustTable, |
+ GrBatchFontCache* cache) { |
GrMaskFormat format = info.maskFormat(); |
GrColor subRunColor; |
if (kARGB_GrMaskFormat == format) { |
@@ -412,6 +413,16 @@ void GrAtlasTextBlob::flushThrowaway(GrContext* context, |
this->flushBigGlyphs(context, dc, clip, skPaint, 0, 0, clipBounds); |
} |
+GrDrawBatch* GrAtlasTextBlob::test_createBatch( |
+ int glyphCount, int run, int subRun, |
+ GrColor color, SkScalar transX, SkScalar transY, |
+ const SkPaint& skPaint, const SkSurfaceProps& props, |
+ const GrDistanceFieldAdjustTable* distanceAdjustTable, |
+ GrBatchFontCache* cache) { |
+ const GrAtlasTextBlob::Run::SubRunInfo& info = fRuns[0].fSubRunInfo[0]; |
+ return this->createBatch(info, glyphCount, 0, 0, color, transX, transY, skPaint, |
+ props, distanceAdjustTable, cache); |
+} |
// TODO get this code building again |
#ifdef CACHE_SANITY_CHECK |