Merge "ViewRootImpl: Call surface destroy callback after layout pass" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
276abcb6b3
@@ -2725,7 +2725,6 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
mAttachInfo.mThreadedRenderer.isEnabled()) {
|
mAttachInfo.mThreadedRenderer.isEnabled()) {
|
||||||
mAttachInfo.mThreadedRenderer.destroy();
|
mAttachInfo.mThreadedRenderer.destroy();
|
||||||
}
|
}
|
||||||
notifySurfaceDestroyed();
|
|
||||||
} else if ((surfaceReplaced
|
} else if ((surfaceReplaced
|
||||||
|| surfaceSizeChanged || windowRelayoutWasForced || colorModeChanged)
|
|| surfaceSizeChanged || windowRelayoutWasForced || colorModeChanged)
|
||||||
&& mSurfaceHolder == null
|
&& mSurfaceHolder == null
|
||||||
@@ -2956,6 +2955,10 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (surfaceDestroyed) {
|
||||||
|
notifySurfaceDestroyed();
|
||||||
|
}
|
||||||
|
|
||||||
if (triggerGlobalLayoutListener) {
|
if (triggerGlobalLayoutListener) {
|
||||||
mAttachInfo.mRecomputeGlobalAttributes = false;
|
mAttachInfo.mRecomputeGlobalAttributes = false;
|
||||||
mAttachInfo.mTreeObserver.dispatchOnGlobalLayout();
|
mAttachInfo.mTreeObserver.dispatchOnGlobalLayout();
|
||||||
|
|||||||
Reference in New Issue
Block a user