aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkComposeShader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkComposeShader.cpp')
-rw-r--r--src/core/SkComposeShader.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/SkComposeShader.cpp b/src/core/SkComposeShader.cpp
index 0dc0da68ef..287702ec66 100644
--- a/src/core/SkComposeShader.cpp
+++ b/src/core/SkComposeShader.cpp
@@ -137,8 +137,10 @@ void SkComposeShader::ComposeShaderContext::shadeSpan(int x, int y, SkPMColor re
SkXfermode* mode = static_cast<const SkComposeShader&>(fShader).fMode;
unsigned scale = SkAlpha255To256(this->getPaintAlpha());
-#ifdef SK_BUILD_FOR_ANDROID
- scale = 256; // ugh -- maintain old bug/behavior for now
+#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
+ // In the Android framework, make compose shader ignore the paint's alpha.
+ // This matches the old behavior. FIXME: Can we remove this difference?
+ scale = 256;
#endif
SkPMColor tmp[TMP_COLOR_COUNT];