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

Side by Side Diff: src/gpu/GrAtlasTextContext.h

Issue 1517563002: Move appending of large glyphs into GrAtlasTextBlob (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanuptext6
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « src/gpu/GrAtlasTextBlob.cpp ('k') | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrAtlasTextContext_DEFINED 8 #ifndef GrAtlasTextContext_DEFINED
9 #define GrAtlasTextContext_DEFINED 9 #define GrAtlasTextContext_DEFINED
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 inline bool canDrawAsDistanceFields(const SkPaint&, const SkMatrix& viewMatr ix); 56 inline bool canDrawAsDistanceFields(const SkPaint&, const SkMatrix& viewMatr ix);
57 GrAtlasTextBlob* setupDFBlob(int glyphCount, const SkPaint& origPaint, 57 GrAtlasTextBlob* setupDFBlob(int glyphCount, const SkPaint& origPaint,
58 const SkMatrix& viewMatrix, SkPaint* dfPaint, 58 const SkMatrix& viewMatrix, SkPaint* dfPaint,
59 SkScalar* textRatio); 59 SkScalar* textRatio);
60 void bmpAppendGlyph(GrAtlasTextBlob*, int runIndex, const SkGlyph&, int left , int top, 60 void bmpAppendGlyph(GrAtlasTextBlob*, int runIndex, const SkGlyph&, int left , int top,
61 GrColor color, GrFontScaler*); 61 GrColor color, GrFontScaler*);
62 bool dfAppendGlyph(GrAtlasTextBlob*, int runIndex, const SkGlyph&, SkScalar sx, SkScalar sy, 62 bool dfAppendGlyph(GrAtlasTextBlob*, int runIndex, const SkGlyph&, SkScalar sx, SkScalar sy,
63 GrColor color, GrFontScaler*, SkScalar textRatio, 63 GrColor color, GrFontScaler*, SkScalar textRatio,
64 const SkMatrix& viewMatrix); 64 const SkMatrix& viewMatrix);
65 inline void appendGlyphPath(GrAtlasTextBlob*, GrGlyph*, GrFontScaler*, const SkGlyph&,
66 SkScalar x, SkScalar y, SkScalar scale = 1.0f,
67 bool applyVM = false);
68 65
69 inline void flushRunAsPaths(GrDrawContext*, 66 inline void flushRunAsPaths(GrDrawContext*,
70 const SkTextBlobRunIterator&, const GrClip& clip , 67 const SkTextBlobRunIterator&, const GrClip& clip ,
71 const SkPaint&, SkDrawFilter*, 68 const SkPaint&, SkDrawFilter*,
72 const SkMatrix& viewMatrix, const SkIRect& clipB ounds, SkScalar x, 69 const SkMatrix& viewMatrix, const SkIRect& clipB ounds, SkScalar x,
73 SkScalar y); 70 SkScalar y);
74 inline GrDrawBatch* createBatch(GrAtlasTextBlob*, const PerSubRunInfo&, 71 inline GrDrawBatch* createBatch(GrAtlasTextBlob*, const PerSubRunInfo&,
75 int glyphCount, int run, int subRun, 72 int glyphCount, int run, int subRun,
76 GrColor, SkScalar transX, SkScalar transY, 73 GrColor, SkScalar transX, SkScalar transY,
77 const SkPaint&); 74 const SkPaint&);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 friend class GrAtlasTextBatch; 173 friend class GrAtlasTextBatch;
177 174
178 #ifdef GR_TEST_UTILS 175 #ifdef GR_TEST_UTILS
179 DRAW_BATCH_TEST_FRIEND(TextBlobBatch); 176 DRAW_BATCH_TEST_FRIEND(TextBlobBatch);
180 #endif 177 #endif
181 178
182 typedef GrTextContext INHERITED; 179 typedef GrTextContext INHERITED;
183 }; 180 };
184 181
185 #endif 182 #endif
OLDNEW
« 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