Make SkPaint::glyphsToUnichars use explicit SkSurfaceProps
BUG=skia:3984,skia:3934
Review URL: https://codereview.chromium.org/1211413003
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
index b18ffa6..f40aeff 100644
--- a/src/core/SkPaint.cpp
+++ b/src/core/SkPaint.cpp
@@ -519,8 +519,7 @@
return true;
}
-void SkPaint::glyphsToUnichars(const uint16_t glyphs[], int count,
- SkUnichar textData[]) const {
+void SkPaint::glyphsToUnichars(const uint16_t glyphs[], int count, SkUnichar textData[]) const {
if (count <= 0) {
return;
}
@@ -528,7 +527,8 @@
SkASSERT(glyphs != NULL);
SkASSERT(textData != NULL);
- SkAutoGlyphCache autoCache(*this, NULL, NULL);
+ SkSurfaceProps props(0, kUnknown_SkPixelGeometry);
+ SkAutoGlyphCache autoCache(*this, &props, NULL);
SkGlyphCache* cache = autoCache.getCache();
for (int index = 0; index < count; index++) {