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

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

Issue 1502323002: A small cleanup of GrAtlasTextContext (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanuptext
Patch Set: fix refcount issue 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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&, 65 inline void appendGlyphPath(GrAtlasTextBlob*, GrGlyph*, GrFontScaler*, const SkGlyph&,
66 SkScalar x, SkScalar y, SkScalar scale = 1.0f, 66 SkScalar x, SkScalar y, SkScalar scale = 1.0f,
67 bool applyVM = false); 67 bool applyVM = false);
68 inline void appendGlyphCommon(GrAtlasTextBlob*, Run*, Run::SubRunInfo*,
69 const SkRect& positions, GrColor color,
70 size_t vertexStride, bool useVertexColor,
71 GrGlyph*);
72 68
73 inline void flushRunAsPaths(GrDrawContext*, 69 inline void flushRunAsPaths(GrDrawContext*,
74 const SkTextBlobRunIterator&, const GrClip& clip , 70 const SkTextBlobRunIterator&, const GrClip& clip ,
75 const SkPaint&, SkDrawFilter*, 71 const SkPaint&, SkDrawFilter*,
76 const SkMatrix& viewMatrix, const SkIRect& clipB ounds, SkScalar x, 72 const SkMatrix& viewMatrix, const SkIRect& clipB ounds, SkScalar x,
77 SkScalar y); 73 SkScalar y);
78 inline GrDrawBatch* createBatch(GrAtlasTextBlob*, const PerSubRunInfo&, 74 inline GrDrawBatch* createBatch(GrAtlasTextBlob*, const PerSubRunInfo&,
79 int glyphCount, int run, int subRun, 75 int glyphCount, int run, int subRun,
80 GrColor, SkScalar transX, SkScalar transY, 76 GrColor, SkScalar transX, SkScalar transY,
81 const SkPaint&); 77 const SkPaint&);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 friend class GrAtlasTextBatch; 180 friend class GrAtlasTextBatch;
185 181
186 #ifdef GR_TEST_UTILS 182 #ifdef GR_TEST_UTILS
187 DRAW_BATCH_TEST_FRIEND(TextBlobBatch); 183 DRAW_BATCH_TEST_FRIEND(TextBlobBatch);
188 #endif 184 #endif
189 185
190 typedef GrTextContext INHERITED; 186 typedef GrTextContext INHERITED;
191 }; 187 };
192 188
193 #endif 189 #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