OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrFontScaler_DEFINED | 8 #ifndef GrFontScaler_DEFINED |
9 #define GrFontScaler_DEFINED | 9 #define GrFontScaler_DEFINED |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 */ | 45 */ |
46 class GrFontScaler : public SkRefCnt { | 46 class GrFontScaler : public SkRefCnt { |
47 public: | 47 public: |
48 explicit GrFontScaler(SkGlyphCache* strike); | 48 explicit GrFontScaler(SkGlyphCache* strike); |
49 virtual ~GrFontScaler(); | 49 virtual ~GrFontScaler(); |
50 | 50 |
51 const GrFontDescKey* getKey(); | 51 const GrFontDescKey* getKey(); |
52 GrMaskFormat getMaskFormat() const; | 52 GrMaskFormat getMaskFormat() const; |
53 GrMaskFormat getPackedGlyphMaskFormat(const SkGlyph&) const; | 53 GrMaskFormat getPackedGlyphMaskFormat(const SkGlyph&) const; |
54 bool getPackedGlyphBounds(const SkGlyph&, SkIRect* bounds); | 54 bool getPackedGlyphBounds(const SkGlyph&, SkIRect* bounds); |
55 bool getPackedGlyphImage(const SkGlyph&, int width, int height, int rowBytes
, void* image); | 55 bool getPackedGlyphImage(const SkGlyph&, int width, int height, int rowBytes
, |
| 56 GrMaskFormat expectedMaskFormat, void* image); |
56 bool getPackedGlyphDFBounds(const SkGlyph&, SkIRect* bounds); | 57 bool getPackedGlyphDFBounds(const SkGlyph&, SkIRect* bounds); |
57 bool getPackedGlyphDFImage(const SkGlyph&, int width, int height, void* imag
e); | 58 bool getPackedGlyphDFImage(const SkGlyph&, int width, int height, void* imag
e); |
58 const SkPath* getGlyphPath(const SkGlyph&); | 59 const SkPath* getGlyphPath(const SkGlyph&); |
59 const SkGlyph& grToSkGlyph(GrGlyph::PackedID); | 60 const SkGlyph& grToSkGlyph(GrGlyph::PackedID); |
60 | 61 |
61 private: | 62 private: |
62 SkGlyphCache* fStrike; | 63 SkGlyphCache* fStrike; |
63 GrFontDescKey* fKey; | 64 GrFontDescKey* fKey; |
64 | 65 |
65 typedef SkRefCnt INHERITED; | 66 typedef SkRefCnt INHERITED; |
66 }; | 67 }; |
67 | 68 |
68 #endif | 69 #endif |
OLD | NEW |