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

Commit 3c78e73a authored by Rob Carr's avatar Rob Carr Committed by android-build-merger
Browse files

Merge "SurfaceView: Wait to gather transparent region." into oc-dev

am: d9bf5ecf

Change-Id: I7690e2439276f9362f5fdeff0f789e9f1f3f7d91
parents 656d33f3 d9bf5ecf
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -138,6 +138,8 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
                case DRAW_FINISHED_MSG: {
                    mDrawFinished = true;
                    if (mAttachedToWindow) {
                        mParent.requestTransparentRegion(SurfaceView.this);

                        notifyDrawFinished();
                        invalidate();
                    }
@@ -247,7 +249,6 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
        getViewRootImpl().addWindowStoppedCallback(this);
        mWindowStopped = false;

        mParent.requestTransparentRegion(this);
        mViewVisibility = getVisibility() == VISIBLE;
        updateRequestedVisibility();

@@ -352,7 +353,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb

    @Override
    public boolean gatherTransparentRegion(Region region) {
        if (isAboveParent()) {
        if (isAboveParent() || !mDrawFinished) {
            return super.gatherTransparentRegion(region);
        }