diff options
author | 2015-08-13 13:34:48 -0700 | |
---|---|---|
committer | 2015-08-13 13:34:48 -0700 | |
commit | abd30f54b7ff1704a8930c4307ea242d09425d02 (patch) | |
tree | 08eb5fdaa2fbe55f2e763a1d3c05054896919b68 /src/gpu/GrAtlasTextContext.h | |
parent | 8f34372f7e97482e5e61ab298b7edaa008ba2f4c (diff) |
Introduce GrBatch subclasses GrDrawBatch and GrVertexBatch to prepare for non-drawing batches
Review URL: https://codereview.chromium.org/1293583002
Diffstat (limited to 'src/gpu/GrAtlasTextContext.h')
-rw-r--r-- | src/gpu/GrAtlasTextContext.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gpu/GrAtlasTextContext.h b/src/gpu/GrAtlasTextContext.h index 41c5217b9b..2945b02152 100644 --- a/src/gpu/GrAtlasTextContext.h +++ b/src/gpu/GrAtlasTextContext.h @@ -18,6 +18,7 @@ #include "GrBatchTest.h" #endif +class GrDrawBatch; class GrDrawContext; class GrDrawTarget; class GrPipelineBuilder; @@ -75,10 +76,10 @@ private: const SkPaint&, SkDrawFilter*, const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x, SkScalar y); - inline GrBatch* createBatch(GrAtlasTextBlob*, const PerSubRunInfo&, - int glyphCount, int run, int subRun, - GrColor, SkScalar transX, SkScalar transY, - const SkPaint&); + inline GrDrawBatch* createBatch(GrAtlasTextBlob*, const PerSubRunInfo&, + int glyphCount, int run, int subRun, + GrColor, SkScalar transX, SkScalar transY, + const SkPaint&); inline void flushRun(GrPipelineBuilder*, GrAtlasTextBlob*, int run, GrColor, SkScalar transX, SkScalar transY, const SkPaint&); inline void flushBigGlyphs(GrAtlasTextBlob* cacheBlob, GrRenderTarget*, @@ -186,7 +187,7 @@ private: friend class TextBatch; #ifdef GR_TEST_UTILS - BATCH_TEST_FRIEND(TextBlobBatch); + DRAW_BATCH_TEST_FRIEND(TextBlobBatch); #endif typedef GrTextContext INHERITED; |