summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-04-06 03:05:45 -0700
committerSteve Kondik <shade@chemlab.org>2013-04-06 03:16:08 -0700
commitc43b7d2b9c9e5dc0704899e7bb3c11a0f07d6e41 (patch)
treeda4e2b2de3eb6d41654becb83212f908e393aee1 /libs
parent8a3cb1aaa8317f04279cc4d0fa932ef0e0f9d9a7 (diff)
downloadframeworks_base-c43b7d2b9c9e5dc0704899e7bb3c11a0f07d6e41.zip
frameworks_base-c43b7d2b9c9e5dc0704899e7bb3c11a0f07d6e41.tar.gz
frameworks_base-c43b7d2b9c9e5dc0704899e7bb3c11a0f07d6e41.tar.bz2
Revert "Remove opaque check in GLRenderer when preparing dirty region."
* This causes artifacts even with 8974 drivers. This reverts commit c422280a7668ddbe1c4e399b083ec3d8a04059b1. Change-Id: Iec4addc2d8aaeb6ce6a359aafd9fd9b97aef95e6
Diffstat (limited to 'libs')
-rw-r--r--[-rwxr-xr-x]libs/hwui/OpenGLRenderer.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index cf04be2..bc30738 100755..100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -208,22 +208,14 @@ status_t OpenGLRenderer::prepareDirty(float left, float top, float right, float
}
status_t OpenGLRenderer::clear(float left, float top, float right, float bottom, bool opaque) {
-#ifdef QCOM_BSP
- mCaches.enableScissor();
- mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
- glClear(GL_COLOR_BUFFER_BIT);
- if(opaque)
- mCaches.resetScissor();
-#else
if (!opaque) {
mCaches.enableScissor();
mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
glClear(GL_COLOR_BUFFER_BIT);
return DrawGlInfo::kStatusDrew;
}
- mCaches.resetScissor();
-#endif
+ mCaches.resetScissor();
return DrawGlInfo::kStatusDone;
}