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 GrDrawState; | |
jvanverth1
2014/12/01 16:00:03
Do you need to add this?
| |
13 class GrGeometryProcessor; | 14 class GrGeometryProcessor; |
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 |
(...skipping 23 matching lines...) Expand all Loading... | |
46 const SkScalar pos[], int scalarsPerPosition, | 47 const SkScalar pos[], int scalarsPerPosition, |
47 const SkPoint& offset) SK_OVERRIDE; | 48 const SkPoint& offset) SK_OVERRIDE; |
48 | 49 |
49 void init(const GrPaint&, const SkPaint&); | 50 void init(const GrPaint&, const SkPaint&); |
50 void appendGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler* ); | 51 void appendGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler* ); |
51 void flush(); // automatically called by destructor | 52 void flush(); // automatically called by destructor |
52 void finish(); | 53 void finish(); |
53 }; | 54 }; |
54 | 55 |
55 #endif | 56 #endif |
OLD | NEW |