Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73e2c7ac authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Remove opaque check in GLRenderer when preparing dirty region." into cm-10.1

parents 3c6c1266 00dc95ff
Loading
Loading
Loading
Loading

libs/hwui/OpenGLRenderer.cpp

100644 → 100755
+15 −0
Original line number Diff line number Diff line
@@ -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() {