Loading libs/hwui/OpenGLRenderer.cpp 100644 → 100755 +15 −0 Original line number Diff line number Diff line Loading @@ -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); Loading @@ -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() { Loading Loading
libs/hwui/OpenGLRenderer.cpp 100644 → 100755 +15 −0 Original line number Diff line number Diff line Loading @@ -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); Loading @@ -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() { Loading