summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-09-04 17:27:16 -0700
committerMathias Agopian <mathias@google.com>2009-09-04 17:27:16 -0700
commit888eee68dbe82f2fe613f4ffdd34c1154618577c (patch)
tree548558cf714e94e2c674f27f23508a932046404b /libs/surfaceflinger
parent348a950aa21e5580f124f46c75bcc63cea507204 (diff)
downloadframeworks_native-888eee68dbe82f2fe613f4ffdd34c1154618577c.zip
frameworks_native-888eee68dbe82f2fe613f4ffdd34c1154618577c.tar.gz
frameworks_native-888eee68dbe82f2fe613f4ffdd34c1154618577c.tar.bz2
fix [2098939] Smooth gradients show banding on Sholes
Diffstat (limited to 'libs/surfaceflinger')
-rw-r--r--libs/surfaceflinger/LayerBase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBase.cpp b/libs/surfaceflinger/LayerBase.cpp
index 9ddf972..ec38fe9 100644
--- a/libs/surfaceflinger/LayerBase.cpp
+++ b/libs/surfaceflinger/LayerBase.cpp
@@ -398,7 +398,8 @@ void LayerBase::drawWithOpenGL(const Region& clip, const Texture& texture) const
glEnable(GL_TEXTURE_2D);
// Dithering...
- if (s.flags & ISurfaceComposer::eLayerDither) {
+ bool fast = !(mFlags & DisplayHardware::SLOW_CONFIG);
+ if (fast || s.flags & ISurfaceComposer::eLayerDither) {
glEnable(GL_DITHER);
} else {
glDisable(GL_DITHER);