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

Commit 58ef7fbf authored by Romain Guy's avatar Romain Guy
Browse files

Forces windows to draw the first time they show.

Change-Id: I239572ee49bc60f30d957f548104e75844859a93
parent ba15633a
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1257,6 +1257,11 @@ public final class ViewRoot extends Handler implements ViewParent, View.AttachIn
            return;
        }

        if (fullRedrawNeeded) {
            mAttachInfo.mIgnoreDirtyState = true;
            dirty.union(0, 0, (int) (mWidth * appScale + 0.5f), (int) (mHeight * appScale + 0.5f));
        }
        
        if (mHwRenderer != null && mHwRenderer.isEnabled()) {
            if (!dirty.isEmpty()) {
                mHwRenderer.draw(mView, mAttachInfo, yoff);
@@ -1270,11 +1275,6 @@ public final class ViewRoot extends Handler implements ViewParent, View.AttachIn
            return;
        }

        if (fullRedrawNeeded) {
            mAttachInfo.mIgnoreDirtyState = true;
            dirty.union(0, 0, (int) (mWidth * appScale + 0.5f), (int) (mHeight * appScale + 0.5f));
        }

        if (DEBUG_ORIENTATION || DEBUG_DRAW) {
            Log.v(TAG, "Draw " + mView + "/"
                    + mWindowAttributes.getTitle()
+1 −1

File changed.

Contains only whitespace changes.