summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@gmail.com>2016-02-29 22:11:34 +0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-03-09 14:46:36 -0800
commit0f1bc6fee9f2ee2bebe4c189b44a566ad9a29524 (patch)
tree24976a505b16fac84743e1e54b7507efeba53999 /libs
parent0487441d96f29ec33b869410b04a510acd3cfa3d (diff)
downloadframeworks_base-0f1bc6fee9f2ee2bebe4c189b44a566ad9a29524.zip
frameworks_base-0f1bc6fee9f2ee2bebe4c189b44a566ad9a29524.tar.gz
frameworks_base-0f1bc6fee9f2ee2bebe4c189b44a566ad9a29524.tar.bz2
Remove opaque check in preparing dirty region for all QCOM device
Change-Id: I7ea61090824cd04c76e7c39639edff7059c8b7ba
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 773c6f5..88a6979 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -181,7 +181,7 @@ void OpenGLRenderer::discardFramebuffer(float left, float top, float right, floa
}
void OpenGLRenderer::clear(float left, float top, float right, float bottom, bool opaque) {
-#ifdef QCOM_BSP_LEGACY
+#ifdef QCOM_HARDWARE
mRenderState.scissor().setEnabled(true);
mRenderState.scissor().set(left, getViewportHeight() - bottom, right - left, bottom - top);
glClear(GL_COLOR_BUFFER_BIT);