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

Commit 41308e29 authored by Romain Guy's avatar Romain Guy
Browse files

Properly draw the window background on window resize

Bug #7385090

This change gets rid of two silly asumptions:
- That a layer needs to be cleared with opaque black (it shouldn't,
it's already cleared to transparent and the view will cover it up
with its own background)
- The the clip should be dirty at the beginning of a frame only
when the render target is opaque

Change-Id: I415b6d3cab196057fb0281419a53fef601a44e28
parent 74437532
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1425,8 +1425,6 @@ public final class ViewRootImpl implements ViewParent,
                            layerCanvas.onPreDraw(null);
                            final int restoreCount = layerCanvas.save();

                            layerCanvas.drawColor(0xff000000, PorterDuff.Mode.SRC);

                            int yoff;
                            final boolean scrolling = mScroller != null
                                    && mScroller.computeScrollOffset();
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ status_t OpenGLRenderer::prepareDirty(float left, float top, float right, float
    mSaveCount = 1;

    mSnapshot->setClip(left, top, right, bottom);
    mDirtyClip = opaque;
    mDirtyClip = true;

    updateLayers();