| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrTextContext_DEFINED | 8 #ifndef GrTextContext_DEFINED |
| 9 #define GrTextContext_DEFINED | 9 #define GrTextContext_DEFINED |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 const SkScalar pos[], int scalarsPerPosition, | 75 const SkScalar pos[], int scalarsPerPosition, |
| 76 const SkPoint& offset, const SkIRect& clipBounds); | 76 const SkPoint& offset, const SkIRect& clipBounds); |
| 77 | 77 |
| 78 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache); | 78 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache); |
| 79 // sets extent in stopVector and returns glyph count | 79 // sets extent in stopVector and returns glyph count |
| 80 static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, | 80 static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, |
| 81 const char text[], size_t byteLength, SkVector* stopV
ector); | 81 const char text[], size_t byteLength, SkVector* stopV
ector); |
| 82 static uint32_t FilterTextFlags(const SkSurfaceProps& surfaceProps, const Sk
Paint& paint); | 82 static uint32_t FilterTextFlags(const SkSurfaceProps& surfaceProps, const Sk
Paint& paint); |
| 83 | 83 |
| 84 friend class GrAtlasTextBatch; | 84 friend class GrAtlasTextBatch; |
| 85 friend class GrAtlasTextBlob; // for drawTextAsPath |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 #endif | 88 #endif |
| OLD | NEW |