Chromium Code Reviews| Index: src/gpu/GrFontScaler.h |
| diff --git a/include/gpu/GrFontScaler.h b/src/gpu/GrFontScaler.h |
| similarity index 72% |
| rename from include/gpu/GrFontScaler.h |
| rename to src/gpu/GrFontScaler.h |
| index d307cabb429e056db99dfe54e3df628e5dc8549e..0132d513042b543bbadffa4041a1b4562cbb3796 100644 |
| --- a/include/gpu/GrFontScaler.h |
| +++ b/src/gpu/GrFontScaler.h |
| @@ -29,6 +29,12 @@ public: |
| virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds) = 0; |
| virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, |
| int rowBytes, void* image) = 0; |
| + // get bounds for distance field associated with packed ID |
| + virtual bool getPackedGlyphDFBounds(GrGlyph::PackedID, SkIRect* bounds) = 0; |
| + // copies distance field bytes into pre-allocated dfImage |
| + // (should be width*height bytes in size) |
| + virtual bool getPackedGlyphDFImage(GrGlyph::PackedID, int width, int height, |
|
reed1
2014/04/14 19:43:02
ah, much clearer
|
| + void* dfImage) = 0; |
| virtual bool getGlyphPath(uint16_t glyphID, SkPath*) = 0; |
| private: |