OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrBitmapTextContext_DEFINED | 8 #ifndef GrBitmapTextContext_DEFINED |
9 #define GrBitmapTextContext_DEFINED | 9 #define GrBitmapTextContext_DEFINED |
10 | 10 |
11 #include "GrTextContext.h" | 11 #include "GrTextContext.h" |
12 | 12 |
13 class GrTextStrike; | 13 class GrTextStrike; |
14 class GrAtlasMgr; | |
15 | 14 |
16 /* | 15 /* |
17 * This class implements GrTextContext using standard bitmap fonts | 16 * This class implements GrTextContext using standard bitmap fonts |
18 */ | 17 */ |
19 class GrBitmapTextContext : public GrTextContext { | 18 class GrBitmapTextContext : public GrTextContext { |
20 public: | 19 public: |
21 GrBitmapTextContext(GrContext*, const SkDeviceProperties&); | 20 GrBitmapTextContext(GrContext*, const SkDeviceProperties&); |
22 virtual ~GrBitmapTextContext(); | 21 virtual ~GrBitmapTextContext(); |
23 | 22 |
24 virtual void drawText(const GrPaint&, const SkPaint&, const char text[], siz
e_t byteLength, | 23 virtual void drawText(const GrPaint&, const SkPaint&, const char text[], siz
e_t byteLength, |
(...skipping 23 matching lines...) Expand all Loading... |
48 void* fVertices; | 47 void* fVertices; |
49 int32_t fMaxVertices; | 48 int32_t fMaxVertices; |
50 GrTexture* fCurrTexture; | 49 GrTexture* fCurrTexture; |
51 SkAutoTUnref<GrEffectRef> fCachedEffect; | 50 SkAutoTUnref<GrEffectRef> fCachedEffect; |
52 uint32_t fEffectTextureGenID; | 51 uint32_t fEffectTextureGenID; |
53 int fCurrVertex; | 52 int fCurrVertex; |
54 SkRect fVertexBounds; | 53 SkRect fVertexBounds; |
55 }; | 54 }; |
56 | 55 |
57 #endif | 56 #endif |
OLD | NEW |