OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |