aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPaint.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-06-26 12:17:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-26 12:17:59 -0700
commitd24955ad3511a024206dd2ac893b52aa85d6cd30 (patch)
treebd854f8d98ab4a3b940c2cc698532ad9005de7dc /src/core/SkPaint.cpp
parent2766c00fc0b6a07d46e5f74cdad45da2ef625237 (diff)
Make SkPaint::glyphsToUnichars use explicit SkSurfaceProps
BUG=skia:3984,skia:3934 Review URL: https://codereview.chromium.org/1211413003
Diffstat (limited to 'src/core/SkPaint.cpp')
-rw-r--r--src/core/SkPaint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
index b18ffa65a7..f40aeff727 100644
--- a/src/core/SkPaint.cpp
+++ b/src/core/SkPaint.cpp
@@ -519,8 +519,7 @@ bool SkPaint::containsText(const void* textData, size_t byteLength) const {
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 @@ void SkPaint::glyphsToUnichars(const uint16_t glyphs[], int count,
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++) {