From fb0c8fc3d5413a3ec357680d85084a17bb9ef64f Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Wed, 26 Jul 2017 13:53:27 -0400 Subject: 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 --- libs/hwui/GlopBuilder.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/hwui/GlopBuilder.cpp') 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 { -- cgit v1.2.3-59-g8ed1b