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

Commit 3a1bffa8 authored by henry.uh_chen's avatar henry.uh_chen Committed by Chen Henry
Browse files

[HWUI] Fix invisible views are still shown in popup window

Symptom: Invisible views are still shown in popup window

Root Cause: glClear isn't called if there is no draw command

Solution: Even if there is no draw command, it still calls glClear
          by startFrame().

Reproduce steps: App set one view in a popup window to invisible,
                 it will be still visible.

Change-Id: I36bc7b752434ad388fbb80ea63341ac778f48d35
parent 1dc550fa
Loading
Loading
Loading
Loading

libs/hwui/OpenGLRenderer.cpp

100644 → 100755
+3 −1
Original line number Diff line number Diff line
@@ -2057,7 +2057,9 @@ status_t OpenGLRenderer::drawDisplayList(DisplayList* displayList, Rect& dirty,
        return status | deferredList.flush(*this, dirty);
    }

    return DrawGlInfo::kStatusDone;
    // Even if there is no drawing command(Ex: invisible),
    // it still needs startFrame to clear buffer and start tiling.
    return startFrame();
}

void OpenGLRenderer::outputDisplayList(DisplayList* displayList) {