summaryrefslogtreecommitdiff
path: root/libs/hwui/VectorDrawable.cpp
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2016-11-03 12:54:10 -0400
committerMike Reed <reed@google.com>2016-11-03 12:58:42 -0400
commitab12c1fe73734a18ac19a06b97f276528f6d027a (patch)
treec72d5f0c09b730fa58990aeae493c715991da256 /libs/hwui/VectorDrawable.cpp
parenta27884236fe1eade93a124f00f0b843997b40a31 (diff)
update callers to newer Skia APIs
Test: refactoring CL. Existing unit tests still pass. Change-Id: I47e73e00f14f78dd9d4c48a142ac9853e7e4cad7
Diffstat (limited to 'libs/hwui/VectorDrawable.cpp')
-rw-r--r--libs/hwui/VectorDrawable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/VectorDrawable.cpp b/libs/hwui/VectorDrawable.cpp
index b50647adc0be..97b7dd722e08 100644
--- a/libs/hwui/VectorDrawable.cpp
+++ b/libs/hwui/VectorDrawable.cpp
@@ -564,7 +564,7 @@ bool Tree::allocateBitmapIfNeeded(Cache& cache, int width, int height) {
#ifndef ANDROID_ENABLE_LINEAR_BLENDING
sk_sp<SkColorSpace> colorSpace = nullptr;
#else
- sk_sp<SkColorSpace> colorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named);
+ sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named);
#endif
SkImageInfo info = SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType, colorSpace);
cache.bitmap = Bitmap::allocateHeapBitmap(info);