Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Unified Diff: src/gpu/GrFontScaler.h

Issue 1275393003: Fix for 510931, merge to m44 (Closed) Base URL: https://skia.googlesource.com/skia.git@m44
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrBatchFontCache.cpp ('k') | src/gpu/GrFontScaler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrFontScaler.h
diff --git a/src/gpu/GrFontScaler.h b/src/gpu/GrFontScaler.h
index 54d1e3f9cca39162719cc4594a80291a2902e9dc..eb93d916ce7f699789ded9b38ec517dd4524d6b2 100644
--- a/src/gpu/GrFontScaler.h
+++ b/src/gpu/GrFontScaler.h
@@ -13,6 +13,7 @@
#include "SkDescriptor.h"
+class SkGlyph;
class SkPath;
/*
@@ -67,14 +68,14 @@ public:
const GrFontDescKey* getKey();
GrMaskFormat getMaskFormat() const;
- GrMaskFormat getPackedGlyphMaskFormat(GrGlyph::PackedID) const;
- bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds);
- bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height,
- int rowBytes, void* image);
- bool getPackedGlyphDFBounds(GrGlyph::PackedID, SkIRect* bounds);
- bool getPackedGlyphDFImage(GrGlyph::PackedID, int width, int height,
- void* image);
- bool getGlyphPath(uint16_t glyphID, SkPath*);
+ GrMaskFormat getPackedGlyphMaskFormat(const SkGlyph&) const;
+ bool getPackedGlyphBounds(const SkGlyph&, SkIRect* bounds);
+ bool getPackedGlyphImage(const SkGlyph&, int width, int height, int rowBytes,
+ GrMaskFormat expectedMaskFormat, void* image);
+ bool getPackedGlyphDFBounds(const SkGlyph&, SkIRect* bounds);
+ bool getPackedGlyphDFImage(const SkGlyph&, int width, int height, void* image);
+ const SkPath* getGlyphPath(const SkGlyph&);
+ const SkGlyph& grToSkGlyph(GrGlyph::PackedID);
private:
SkGlyphCache* fStrike;
« no previous file with comments | « src/gpu/GrBatchFontCache.cpp ('k') | src/gpu/GrFontScaler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698