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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const GrPaint&, const SkPaint&, | 62 const GrPaint&, const SkPaint&, |
63 const SkMatrix& viewMatrix, | 63 const SkMatrix& viewMatrix, |
64 const char text[], size_t byteLength, | 64 const char text[], size_t byteLength, |
65 const SkScalar pos[], int scalarsPerPosition, | 65 const SkScalar pos[], int scalarsPerPosition, |
66 const SkPoint& offset, const SkIRect& clipBounds)
= 0; | 66 const SkPoint& offset, const SkIRect& clipBounds)
= 0; |
67 | 67 |
68 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache); | 68 static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache); |
69 static uint32_t FilterTextFlags(const SkSurfaceProps& surfaceProps, const Sk
Paint& paint); | 69 static uint32_t FilterTextFlags(const SkSurfaceProps& surfaceProps, const Sk
Paint& paint); |
70 | 70 |
71 friend class GrAtlasTextBatch; | 71 friend class GrAtlasTextBatch; |
72 friend class GrAtlasTextBlob; // for drawTextAsPath | 72 friend class GrAtlasTextBlob; // for FilterTextFlags |
| 73 friend class GrTextUtils; // for some static functions |
73 }; | 74 }; |
74 | 75 |
75 #endif | 76 #endif |
OLD | NEW |