summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorKetut Putu Kumajaya <ketut.kumajaya@gmail.com>2016-04-18 10:49:33 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-04-22 09:40:46 -0700
commit463c328c432fd6563c7fec6339a019375ccddeb7 (patch)
tree23c779af36772625899ecc652dd3080c3c60792d /libs
parentab5c226f688080d714f3eee987bd97e13cc348d5 (diff)
downloadframeworks_base-463c328c432fd6563c7fec6339a019375ccddeb7.zip
frameworks_base-463c328c432fd6563c7fec6339a019375ccddeb7.tar.gz
frameworks_base-463c328c432fd6563c7fec6339a019375ccddeb7.tar.bz2
libhwui: Remove opaque check for everything
* Devices still exhibit issues here even when using an AOSP codebase. This problem exists upstream, so make this the default codepath for everything. Change-Id: I49e4e1ad3f294844a4e865d727776bc99f0df439
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 88a6979..2173c07 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -181,7 +181,6 @@ 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_HARDWARE
mRenderState.scissor().setEnabled(true);
mRenderState.scissor().set(left, getViewportHeight() - bottom, right - left, bottom - top);
glClear(GL_COLOR_BUFFER_BIT);
@@ -190,17 +189,6 @@ void OpenGLRenderer::clear(float left, float top, float right, float bottom, boo
mRenderState.scissor().reset();
return;
}
-#else
- if (!opaque) {
- mRenderState.scissor().setEnabled(true);
- mRenderState.scissor().set(left, getViewportHeight() - bottom, right - left, bottom - top);
- glClear(GL_COLOR_BUFFER_BIT);
- mDirty = true;
- return;
- }
-
- mRenderState.scissor().reset();
-#endif
}
void OpenGLRenderer::startTilingCurrentClip(bool opaque, bool expand) {