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 11 matching lines...) Expand all Loading... | |
22 */ | 22 */ |
23 class GrFontScaler : public SkRefCnt { | 23 class GrFontScaler : public SkRefCnt { |
24 public: | 24 public: |
25 SK_DECLARE_INST_COUNT(GrFontScaler) | 25 SK_DECLARE_INST_COUNT(GrFontScaler) |
26 | 26 |
27 virtual const GrKey* getKey() = 0; | 27 virtual const GrKey* getKey() = 0; |
28 virtual GrMaskFormat getMaskFormat() = 0; | 28 virtual GrMaskFormat getMaskFormat() = 0; |
29 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds) = 0; | 29 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds) = 0; |
30 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, | 30 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, |
31 int rowBytes, void* image) = 0; | 31 int rowBytes, void* image) = 0; |
32 // distance field support | |
33 virtual bool getPackedGlyphDFBounds(GrGlyph::PackedID, SkIRect* bounds) = 0; | |
34 virtual bool getPackedGlyphDFImage(GrGlyph::PackedID, int width, int height, | |
reed1
2014/04/14 14:18:05
What does this guy return? Does it set dfImage to
jvanverth1
2014/04/14 17:58:42
It generates distance field pixels from the image
| |
35 int rowBytes, void* dfImage) = 0; | |
32 virtual bool getGlyphPath(uint16_t glyphID, SkPath*) = 0; | 36 virtual bool getGlyphPath(uint16_t glyphID, SkPath*) = 0; |
33 | 37 |
34 private: | 38 private: |
35 typedef SkRefCnt INHERITED; | 39 typedef SkRefCnt INHERITED; |
36 }; | 40 }; |
37 | 41 |
38 #endif | 42 #endif |
OLD | NEW |