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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 class SkGlyphCache; | 78 class SkGlyphCache; |
79 | 79 |
80 class SkGrFontScaler : public GrFontScaler { | 80 class SkGrFontScaler : public GrFontScaler { |
81 public: | 81 public: |
82 explicit SkGrFontScaler(SkGlyphCache* strike); | 82 explicit SkGrFontScaler(SkGlyphCache* strike); |
83 virtual ~SkGrFontScaler(); | 83 virtual ~SkGrFontScaler(); |
84 | 84 |
85 // overrides | 85 // overrides |
86 virtual const GrKey* getKey(); | 86 virtual const GrKey* getKey(); |
87 virtual GrMaskFormat getMaskFormat(); | 87 virtual GrMaskFormat getMaskFormat(); |
88 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, GrIRect* bounds); | 88 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds); |
89 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, | 89 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, |
90 int rowBytes, void* image); | 90 int rowBytes, void* image); |
91 virtual bool getGlyphPath(uint16_t glyphID, SkPath*); | 91 virtual bool getGlyphPath(uint16_t glyphID, SkPath*); |
92 | 92 |
93 private: | 93 private: |
94 SkGlyphCache* fStrike; | 94 SkGlyphCache* fStrike; |
95 GrKey* fKey; | 95 GrKey* fKey; |
96 // DECLARE_INSTANCE_COUNTER(SkGrFontScaler); | 96 // DECLARE_INSTANCE_COUNTER(SkGrFontScaler); |
97 }; | 97 }; |
98 | 98 |
99 //////////////////////////////////////////////////////////////////////////////// | 99 //////////////////////////////////////////////////////////////////////////////// |
100 | 100 |
101 #endif | 101 #endif |
OLD | NEW |