diff options
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rwxr-xr-x[-rw-r--r--] | libs/hwui/OpenGLRenderer.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index bc30738..7309e46 100644..100755 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -208,6 +208,20 @@ 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_HARDWARE + mCaches.enableScissor(); + mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top); + glClear(GL_COLOR_BUFFER_BIT); + if(opaque) + { + mCaches.resetScissor(); + return DrawGlInfo::kStatusDone; + } + else + { + return DrawGlInfo::kStatusDrew; + } +#else if (!opaque) { mCaches.enableScissor(); mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top); @@ -217,6 +231,7 @@ status_t OpenGLRenderer::clear(float left, float top, float right, float bottom, mCaches.resetScissor(); return DrawGlInfo::kStatusDone; +#endif } void OpenGLRenderer::syncState() { |