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

Unified Diff: include/core/SkPaint.h

Issue 1718423002: Simplify and combine SkDrawCacheProc and SkMeasureCacheProc to SkPaint::GlyphCacheProc. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 10 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 | « no previous file | src/core/SkDraw.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPaint.h
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 482483f43a9f99677b2682af8d0ba0d61105a181..b58a3f3d4fe1ea1afe68ead8010d163c15dd5d21 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -35,11 +35,6 @@ class SkShader;
class SkSurfaceProps;
class SkTypeface;
-typedef const SkGlyph& (*SkDrawCacheProc)(SkGlyphCache*, const char**,
- SkFixed x, SkFixed y);
-
-typedef const SkGlyph& (*SkMeasureCacheProc)(SkGlyphCache*, const char**);
-
#define kBicubicFilterBitmap_Flag kHighQualityFilterBitmap_Flag
/** \class SkPaint
@@ -1030,6 +1025,8 @@ public:
return SetTextMatrix(matrix, fTextSize, fTextScaleX, fTextSkewX);
}
+ typedef const SkGlyph& (*GlyphCacheProc)(SkGlyphCache*, const char**);
+
SK_TO_STRING_NONVIRT()
private:
@@ -1066,8 +1063,7 @@ private:
uint32_t fBitfieldsUInt;
};
- SkDrawCacheProc getDrawCacheProc() const;
- SkMeasureCacheProc getMeasureCacheProc(bool needFullMetrics) const;
+ GlyphCacheProc getGlyphCacheProc(bool needFullMetrics) const;
SkScalar measure_text(SkGlyphCache*, const char* text, size_t length,
int* count, SkRect* bounds) const;
« no previous file with comments | « no previous file | src/core/SkDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698