summaryrefslogtreecommitdiff
path: root/libs/hwui/Texture.cpp
diff options
context:
space:
mode:
author Matt Sarett <msarett@google.com> 2017-02-10 13:31:56 -0500
committer Matt Sarett <msarett@google.com> 2017-02-10 13:32:09 -0500
commit89ddb1f1644e0b47de060d2c9aaf6d5387c38f2f (patch)
treed914c9a1eb13b598418fca14c126f5b3cb4ee8ab /libs/hwui/Texture.cpp
parentfd9d0ee9f82e2e224e14b05b6c8485670e46bd97 (diff)
Update framework to use new SkColorSpace API
Test: This compiles with SK_USE_LEGACY_NAMED_COLOR_SPACE turned off. Change-Id: Ie573f59e0aa475bab06b38589db3c6158ad82c5a
Diffstat (limited to 'libs/hwui/Texture.cpp')
-rw-r--r--libs/hwui/Texture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/Texture.cpp b/libs/hwui/Texture.cpp
index 50af9c8cd711..0dbd7674e2aa 100644
--- a/libs/hwui/Texture.cpp
+++ b/libs/hwui/Texture.cpp
@@ -282,7 +282,7 @@ void Texture::upload(Bitmap& bitmap) {
setDefaultParams = true;
}
- sk_sp<SkColorSpace> sRGB = SkColorSpace::MakeNamed(SkColorSpace::kSRGB_Named);
+ sk_sp<SkColorSpace> sRGB = SkColorSpace::MakeSRGB();
bool needSRGB = bitmap.info().colorSpace() == sRGB.get();
GLint internalFormat, format, type;