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

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

Issue 1411723005: Make SkTextBlob::RunIterator public. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-10-27 (Tuesday) 16:20:53 EDT Created 5 years, 1 month 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/core/SkTextBlobRunIterator.h ('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
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
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
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
OLDNEW
« no previous file with comments | « src/core/SkTextBlobRunIterator.h ('k') | src/gpu/GrAtlasTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698