Change from SkDeviceProperties to SkSurfaceProps.
Fixes build.
Change-Id: Id6b0f96830761f8b6896169327de90f3b390e3c9
(cherry picked from commit 8ebf97a668e7a53bb9810aa5049a8b28435143d2)
diff --git a/libs/hwui/font/Font.cpp b/libs/hwui/font/Font.cpp
index 4fb5ba4..fb0753b 100644
--- a/libs/hwui/font/Font.cpp
+++ b/libs/hwui/font/Font.cpp
@@ -19,7 +19,7 @@
#include <utils/JenkinsHash.h>
#include <utils/Trace.h>
-#include <SkDeviceProperties.h>
+#include <SkSurfaceProps.h>
#include <SkGlyph.h>
#include <SkGlyphCache.h>
#include <SkUtils.h>
@@ -281,8 +281,8 @@
if (cachedGlyph) {
// Is the glyph still in texture cache?
if (!cachedGlyph->mIsValid) {
- SkDeviceProperties deviceProperties(kUnknown_SkPixelGeometry, 1.0f);
- SkAutoGlyphCache autoCache(*paint, &deviceProperties, &mDescription.mLookupTransform);
+ SkSurfaceProps surfaceProps(0, kUnknown_SkPixelGeometry);
+ SkAutoGlyphCacheNoGamma autoCache(*paint, &surfaceProps, &mDescription.mLookupTransform);
const SkGlyph& skiaGlyph = GET_METRICS(autoCache.getCache(), textUnit);
updateGlyphCache(paint, skiaGlyph, autoCache.getCache(), cachedGlyph, precaching);
}
@@ -472,8 +472,8 @@
CachedGlyphInfo* newGlyph = new CachedGlyphInfo();
mCachedGlyphs.add(glyph, newGlyph);
- SkDeviceProperties deviceProperties(kUnknown_SkPixelGeometry, 1.0f);
- SkAutoGlyphCache autoCache(*paint, &deviceProperties, &mDescription.mLookupTransform);
+ SkSurfaceProps surfaceProps(0, kUnknown_SkPixelGeometry);
+ SkAutoGlyphCacheNoGamma autoCache(*paint, &surfaceProps, &mDescription.mLookupTransform);
const SkGlyph& skiaGlyph = GET_METRICS(autoCache.getCache(), glyph);
newGlyph->mIsValid = false;
newGlyph->mGlyphIndex = skiaGlyph.fID;