| 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 |
| 11 #include "GrClip.h" | 11 #include "GrClip.h" |
| 12 #include "GrGlyph.h" | 12 #include "GrGlyph.h" |
| 13 #include "GrPaint.h" | 13 #include "GrPaint.h" |
| 14 #include "SkDeviceProperties.h" | 14 #include "SkDeviceProperties.h" |
| 15 | |
| 16 #include "SkPostConfig.h" | 15 #include "SkPostConfig.h" |
| 17 | 16 |
| 18 class GrClip; | 17 class GrClip; |
| 19 class GrContext; | 18 class GrContext; |
| 20 class GrDrawTarget; | 19 class GrDrawTarget; |
| 21 class GrFontScaler; | 20 class GrFontScaler; |
| 22 class SkDrawFilter; | 21 class SkDrawFilter; |
| 23 class SkGpuDevice; | 22 class SkGpuDevice; |
| 24 class SkTextBlob; | 23 class SkTextBlob; |
| 25 | 24 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 87 |
| 89 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache); | 88 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache); |
| 90 // sets extent in stopVector and returns glyph count | 89 // sets extent in stopVector and returns glyph count |
| 91 static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, | 90 static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, |
| 92 const char text[], size_t byteLength, SkVector* stopV
ector); | 91 const char text[], size_t byteLength, SkVector* stopV
ector); |
| 93 | 92 |
| 94 friend class BitmapTextBatch; | 93 friend class BitmapTextBatch; |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 #endif | 96 #endif |
| OLD | NEW |