projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bb6d40
)
Disable optimization as HWUI does not yet support color shaders.
author
djsollen
<djsollen@google.com>
Tue, 14 Jul 2015 17:59:28 +0000
(10:59 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Tue, 14 Jul 2015 17:59:28 +0000
(10:59 -0700)
Review URL: https://codereview.chromium.org/
1235913005
src/core/SkBitmapProcShader.cpp
patch
|
blob
|
history
diff --git
a/src/core/SkBitmapProcShader.cpp
b/src/core/SkBitmapProcShader.cpp
index
678802b
..
eeb43b4
100644
(file)
--- a/
src/core/SkBitmapProcShader.cpp
+++ b/
src/core/SkBitmapProcShader.cpp
@@
-268,6
+268,11
@@
void SkBitmapProcShader::BitmapProcShaderContext::shadeSpan16(int x, int y, uint
// returns true and set color if the bitmap can be drawn as a single color
// (for efficiency)
static bool canUseColorShader(const SkBitmap& bm, SkColor* color) {
+#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
+ // HWUI does not support color shaders (see b/22390304)
+ return false;
+#endif
+
if (1 != bm.width() || 1 != bm.height()) {
return false;
}