summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-07-19 15:20:03 -0700
committerRomain Guy <romainguy@google.com>2011-07-19 15:20:03 -0700
commitf2fc460a9512500d9d5749fbaada88903d8e3b22 (patch)
tree6751bbfd9de2084b19d03e8995e52569cbd98cfb /libs
parent566b3efb25299d2a9c8ae827522802bad965426a (diff)
downloadframeworks_base-f2fc460a9512500d9d5749fbaada88903d8e3b22.zip
frameworks_base-f2fc460a9512500d9d5749fbaada88903d8e3b22.tar.gz
frameworks_base-f2fc460a9512500d9d5749fbaada88903d8e3b22.tar.bz2
Reduce the fade area to save bandwidth.
Change-Id: I8ccea17fc1fb3c132329baa0acc1b3d5a140a5c6
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index a349121..85a9762 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -125,6 +125,7 @@ OpenGLRenderer::~OpenGLRenderer() {
///////////////////////////////////////////////////////////////////////////////
void OpenGLRenderer::setViewport(int width, int height) {
+ glDisable(GL_DITHER);
glViewport(0, 0, width, height);
mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1);
@@ -151,7 +152,6 @@ void OpenGLRenderer::prepareDirty(float left, float top, float right, float bott
mSaveCount = 1;
glViewport(0, 0, mWidth, mHeight);
- glDisable(GL_DITHER);
glEnable(GL_SCISSOR_TEST);
glScissor(left, mSnapshot->height - bottom, right - left, bottom - top);