summaryrefslogtreecommitdiff
path: root/libs/hwui/GradientCache.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2016-10-12 18:29:06 -0700
committerRomain Guy <romainguy@google.com>2016-10-12 18:31:31 -0700
commitf9037dabea3ccf80b05ec1d66aeac13bee38b239 (patch)
tree45880bdb6d48e1b83e7035b992dc3138c00da4e3 /libs/hwui/GradientCache.cpp
parentf60cc2004838f6f6a926294114e2aa5489cb8deb (diff)
Don't apply the OECF twice to multi-stop gradients
Test: Manual Change-Id: Icd65d906df2f0a059373edb8c6d55fe378c92f92
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
-rw-r--r--libs/hwui/GradientCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp
index cd3ccf9b8fc7..0972ac1cafc2 100644
--- a/libs/hwui/GradientCache.cpp
+++ b/libs/hwui/GradientCache.cpp
@@ -198,7 +198,7 @@ void GradientCache::mixFloats(const FloatColor& start, const FloatColor& end,
float amount, uint8_t*& dst) const {
float oppAmount = 1.0f - amount;
float* d = (float*) dst;
-#if ANDROID_LINEAR_BLENDING_ENABLED
+#ifdef ANDROID_ENABLE_LINEAR_BLENDING
*d++ = start.r * oppAmount + end.r * amount;
*d++ = start.g * oppAmount + end.g * amount;
*d++ = start.b * oppAmount + end.b * amount;