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 GrGeometryProcessor; | 13 #include "GrGeometryProcessor.h" |
| 14 |
14 class GrTextStrike; | 15 class GrTextStrike; |
15 | 16 |
16 /* | 17 /* |
17 * This class implements GrTextContext using standard bitmap fonts | 18 * This class implements GrTextContext using standard bitmap fonts |
18 */ | 19 */ |
19 class GrBitmapTextContext : public GrTextContext { | 20 class GrBitmapTextContext : public GrTextContext { |
20 public: | 21 public: |
21 static GrBitmapTextContext* Create(GrContext*, const SkDeviceProperties&); | 22 static GrBitmapTextContext* Create(GrContext*, const SkDeviceProperties&); |
22 | 23 |
23 virtual ~GrBitmapTextContext() {} | 24 virtual ~GrBitmapTextContext() {} |
(...skipping 26 matching lines...) Expand all Loading... |
50 const SkPoint& offset) SK_OVERRIDE; | 51 const SkPoint& offset) SK_OVERRIDE; |
51 | 52 |
52 void init(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPaint&); | 53 void init(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPaint&); |
53 void appendGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*
); | 54 void appendGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*
); |
54 bool uploadGlyph(GrGlyph*, GrFontScaler*); | 55 bool uploadGlyph(GrGlyph*, GrFontScaler*); |
55 void flush(); // automatically called by destructor | 56 void flush(); // automatically called by destructor |
56 void finish(); | 57 void finish(); |
57 }; | 58 }; |
58 | 59 |
59 #endif | 60 #endif |
OLD | NEW |