| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |