OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 class SkGlyphCache; | 76 class SkGlyphCache; |
77 | 77 |
78 class SkGrFontScaler : public GrFontScaler { | 78 class SkGrFontScaler : public GrFontScaler { |
79 public: | 79 public: |
80 explicit SkGrFontScaler(SkGlyphCache* strike); | 80 explicit SkGrFontScaler(SkGlyphCache* strike); |
81 virtual ~SkGrFontScaler(); | 81 virtual ~SkGrFontScaler(); |
82 | 82 |
83 // overrides | 83 // overrides |
84 virtual const GrKey* getKey(); | 84 virtual const GrKey* getKey(); |
85 virtual GrMaskFormat getMaskFormat(); | 85 virtual GrMaskFormat getMaskFormat(); |
86 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds); | 86 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds) SK_OVE
RRIDE; |
87 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, | 87 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, |
88 int rowBytes, void* image); | 88 int rowBytes, void* image) SK_OVERRIDE; |
| 89 virtual bool getPackedGlyphDFBounds(GrGlyph::PackedID, SkIRect* bounds) SK_O
VERRIDE; |
| 90 virtual bool getPackedGlyphDFImage(GrGlyph::PackedID, int width, int height, |
| 91 void* image) SK_OVERRIDE; |
89 virtual bool getGlyphPath(uint16_t glyphID, SkPath*); | 92 virtual bool getGlyphPath(uint16_t glyphID, SkPath*); |
90 | 93 |
91 private: | 94 private: |
92 SkGlyphCache* fStrike; | 95 SkGlyphCache* fStrike; |
93 GrKey* fKey; | 96 GrKey* fKey; |
94 // DECLARE_INSTANCE_COUNTER(SkGrFontScaler); | 97 // DECLARE_INSTANCE_COUNTER(SkGrFontScaler); |
95 }; | 98 }; |
96 | 99 |
97 //////////////////////////////////////////////////////////////////////////////// | 100 //////////////////////////////////////////////////////////////////////////////// |
98 | 101 |
99 #endif | 102 #endif |
OLD | NEW |