Merge "Request a traversal when a saved surface gets redrawn" into nyc-dev
This commit is contained in:
@@ -2115,14 +2115,16 @@ final class WindowState implements WindowManagerPolicy.WindowState {
|
|||||||
mWasVisibleBeforeClientHidden = false;
|
mWasVisibleBeforeClientHidden = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void clearAnimatingWithSavedSurface() {
|
boolean clearAnimatingWithSavedSurface() {
|
||||||
if (mAnimatingWithSavedSurface) {
|
if (mAnimatingWithSavedSurface) {
|
||||||
// App has drawn something to its windows, we're no longer animating with
|
// App has drawn something to its windows, we're no longer animating with
|
||||||
// the saved surfaces.
|
// the saved surfaces.
|
||||||
if (DEBUG_ANIM) Slog.d(TAG,
|
if (DEBUG_ANIM) Slog.d(TAG,
|
||||||
"clearAnimatingWithSavedSurface(): win=" + this);
|
"clearAnimatingWithSavedSurface(): win=" + this);
|
||||||
mAnimatingWithSavedSurface = false;
|
mAnimatingWithSavedSurface = false;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -585,7 +585,7 @@ class WindowStateAnimator {
|
|||||||
+ drawStateToString());
|
+ drawStateToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
mWin.clearAnimatingWithSavedSurface();
|
boolean layoutNeeded = mWin.clearAnimatingWithSavedSurface();
|
||||||
|
|
||||||
if (mDrawState == DRAW_PENDING) {
|
if (mDrawState == DRAW_PENDING) {
|
||||||
if (DEBUG_SURFACE_TRACE || DEBUG_ANIM || SHOW_TRANSACTIONS || DEBUG_ORIENTATION)
|
if (DEBUG_SURFACE_TRACE || DEBUG_ANIM || SHOW_TRANSACTIONS || DEBUG_ORIENTATION)
|
||||||
@@ -595,10 +595,10 @@ class WindowStateAnimator {
|
|||||||
Slog.v(TAG, "Draw state now committed in " + mWin);
|
Slog.v(TAG, "Draw state now committed in " + mWin);
|
||||||
}
|
}
|
||||||
mDrawState = COMMIT_DRAW_PENDING;
|
mDrawState = COMMIT_DRAW_PENDING;
|
||||||
return true;
|
layoutNeeded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return layoutNeeded;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This must be called while inside a transaction.
|
// This must be called while inside a transaction.
|
||||||
|
|||||||
Reference in New Issue
Block a user