summaryrefslogtreecommitdiff
path: root/libs/hwui/GlopBuilder.cpp
diff options
context:
space:
mode:
author Derek Sollenberger <djsollen@google.com> 2017-07-26 13:53:27 -0400
committer Stan Iliev <stani@google.com> 2017-07-27 10:52:11 -0400
commitfb0c8fc3d5413a3ec357680d85084a17bb9ef64f (patch)
treea1952c3daf90ff2dc6441c489619a27be6de4b22 /libs/hwui/GlopBuilder.cpp
parent25b14a1a2881e11716844a56b6fdbeae9099527b (diff)
Enable colorspace conversion while perserving legacy blending.
When requesting an SkImage from a android::Bitmap we will also return a colorFilter that will perform the sRGB conversion at draw time. Bug: 62347704 Test: CtsUiRenderingTestCases, CtsGraphicsTestCases, CtsViewTestCases Change-Id: Icc4694e2c42605e29fcc834c252bc21263bac658
Diffstat (limited to 'libs/hwui/GlopBuilder.cpp')
-rw-r--r--libs/hwui/GlopBuilder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/GlopBuilder.cpp b/libs/hwui/GlopBuilder.cpp
index c19c1a11e3e2..8727a1d20dfd 100644
--- a/libs/hwui/GlopBuilder.cpp
+++ b/libs/hwui/GlopBuilder.cpp
@@ -296,6 +296,7 @@ void GlopBuilder::setFill(int color, float alphaScale,
colorVector[2] = EOCF(srcColorMatrix[14] / 255.0f);
colorVector[3] = srcColorMatrix[19] / 255.0f; // alpha is linear
} else {
+ ALOGE("unsupported ColorFilter type: %s", colorFilter->getTypeName());
LOG_ALWAYS_FATAL("unsupported ColorFilter");
}
} else {