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 |
11 #include "GrTextContext.h" | 11 #include "GrTextContext.h" |
12 | 12 |
13 #include "GrAtlasTextBlob.h" | 13 #include "GrAtlasTextBlob.h" |
14 #include "GrGeometryProcessor.h" | 14 #include "GrGeometryProcessor.h" |
15 #include "SkTextBlob.h" | 15 #include "SkTextBlobRunIterator.h" |
16 | 16 |
17 #ifdef GR_TEST_UTILS | 17 #ifdef GR_TEST_UTILS |
18 #include "GrBatchTest.h" | 18 #include "GrBatchTest.h" |
19 #endif | 19 #endif |
20 | 20 |
21 class GrDrawBatch; | 21 class GrDrawBatch; |
22 class GrDrawContext; | 22 class GrDrawContext; |
23 class GrDrawTarget; | 23 class GrDrawTarget; |
24 class GrPipelineBuilder; | 24 class GrPipelineBuilder; |
25 class GrTextBlobCache; | 25 class GrTextBlobCache; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const SkMatrix& viewMatrix); | 66 const SkMatrix& viewMatrix); |
67 inline void appendGlyphPath(GrAtlasTextBlob*, GrGlyph*, GrFontScaler*, const
SkGlyph&, | 67 inline void appendGlyphPath(GrAtlasTextBlob*, GrGlyph*, GrFontScaler*, const
SkGlyph&, |
68 SkScalar x, SkScalar y, SkScalar scale = 1.0f, | 68 SkScalar x, SkScalar y, SkScalar scale = 1.0f, |
69 bool applyVM = false); | 69 bool applyVM = false); |
70 inline void appendGlyphCommon(GrAtlasTextBlob*, Run*, Run::SubRunInfo*, | 70 inline void appendGlyphCommon(GrAtlasTextBlob*, Run*, Run::SubRunInfo*, |
71 const SkRect& positions, GrColor color, | 71 const SkRect& positions, GrColor color, |
72 size_t vertexStride, bool useVertexColor, | 72 size_t vertexStride, bool useVertexColor, |
73 GrGlyph*); | 73 GrGlyph*); |
74 | 74 |
75 inline void flushRunAsPaths(GrDrawContext*, GrRenderTarget*, | 75 inline void flushRunAsPaths(GrDrawContext*, GrRenderTarget*, |
76 const SkTextBlob::RunIterator&, const GrClip& cl
ip, | 76 const SkTextBlobRunIterator&, const GrClip& clip
, |
77 const SkPaint&, SkDrawFilter*, | 77 const SkPaint&, SkDrawFilter*, |
78 const SkMatrix& viewMatrix, const SkIRect& clipB
ounds, SkScalar x, | 78 const SkMatrix& viewMatrix, const SkIRect& clipB
ounds, SkScalar x, |
79 SkScalar y); | 79 SkScalar y); |
80 inline GrDrawBatch* createBatch(GrAtlasTextBlob*, const PerSubRunInfo&, | 80 inline GrDrawBatch* createBatch(GrAtlasTextBlob*, const PerSubRunInfo&, |
81 int glyphCount, int run, int subRun, | 81 int glyphCount, int run, int subRun, |
82 GrColor, SkScalar transX, SkScalar transY, | 82 GrColor, SkScalar transX, SkScalar transY, |
83 const SkPaint&); | 83 const SkPaint&); |
84 inline void flushRun(GrDrawContext*, GrPipelineBuilder*, GrAtlasTextBlob*, i
nt run, GrColor, | 84 inline void flushRun(GrDrawContext*, GrPipelineBuilder*, GrAtlasTextBlob*, i
nt run, GrColor, |
85 SkScalar transX, SkScalar transY, const SkPaint&); | 85 SkScalar transX, SkScalar transY, const SkPaint&); |
86 inline void flushBigGlyphs(GrAtlasTextBlob* cacheBlob, GrDrawContext*, GrRen
derTarget*, | 86 inline void flushBigGlyphs(GrAtlasTextBlob* cacheBlob, GrDrawContext*, GrRen
derTarget*, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 friend class TextBatch; | 187 friend class TextBatch; |
188 | 188 |
189 #ifdef GR_TEST_UTILS | 189 #ifdef GR_TEST_UTILS |
190 DRAW_BATCH_TEST_FRIEND(TextBlobBatch); | 190 DRAW_BATCH_TEST_FRIEND(TextBlobBatch); |
191 #endif | 191 #endif |
192 | 192 |
193 typedef GrTextContext INHERITED; | 193 typedef GrTextContext INHERITED; |
194 }; | 194 }; |
195 | 195 |
196 #endif | 196 #endif |
OLD | NEW |