Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: src/gpu/GrAtlasTextContext.h

Issue 1518763002: Move flush logic into GrAtlasTextBlob (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanuptext8
Patch Set: silence compiler warning Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAtlasTextBlob.cpp ('k') | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAtlasTextContext.h
diff --git a/src/gpu/GrAtlasTextContext.h b/src/gpu/GrAtlasTextContext.h
index 82283bcf2413e0ed7b18ab29fb8f76dccbba49cb..fb132c21b59425bd357f6c64a0b0db5a9802daff 100644
--- a/src/gpu/GrAtlasTextContext.h
+++ b/src/gpu/GrAtlasTextContext.h
@@ -64,29 +64,6 @@ private:
GrColor color, GrFontScaler*, SkScalar textRatio,
const SkMatrix& viewMatrix);
- inline void flushRunAsPaths(GrDrawContext*,
- const SkTextBlobRunIterator&, const GrClip& clip,
- const SkPaint&, SkDrawFilter*,
- const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x,
- SkScalar y);
- inline GrDrawBatch* createBatch(GrAtlasTextBlob*, const PerSubRunInfo&,
- int glyphCount, int run, int subRun,
- GrColor, SkScalar transX, SkScalar transY,
- const SkPaint&);
- inline void flushRun(GrDrawContext*, GrPipelineBuilder*, GrAtlasTextBlob*, int run, GrColor,
- SkScalar transX, SkScalar transY, const SkPaint&);
- inline void flushBigGlyphs(GrAtlasTextBlob* cacheBlob, GrDrawContext*,
- const GrClip& clip, const SkPaint& skPaint,
- SkScalar transX, SkScalar transY, const SkIRect& clipBounds);
-
- // We have to flush SkTextBlobs differently from drawText / drawPosText
- void flush(const SkTextBlob*, GrAtlasTextBlob*, GrDrawContext*,
- const SkPaint&, const GrPaint&, SkDrawFilter*, const GrClip&,
- const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x, SkScalar y,
- SkScalar transX, SkScalar transY);
- void flush(GrAtlasTextBlob*, GrDrawContext*, const SkPaint&,
- const GrPaint&, const GrClip&, const SkIRect& clipBounds);
-
// A helper for drawing BitmapText in a run of distance fields
inline void fallbackDrawPosText(GrAtlasTextBlob*, int runIndex,
const GrClip&, GrColor color,
@@ -148,6 +125,7 @@ private:
const SkScalar pos[], int scalarsPerPosition,
const SkPoint& offset,
const SkIRect& regionClipBounds);
+ const GrDistanceFieldAdjustTable* dfAdjustTable() const { return fDistanceAdjustTable; }
GrBatchTextStrike* fCurrStrike;
GrTextBlobCache* fCache;
« no previous file with comments | « src/gpu/GrAtlasTextBlob.cpp ('k') | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698