Merge "Trace Window relayout reasons" into tm-dev am: cfbbd755ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18090282 Change-Id: Ib9bd9f888ac72d37bf43cecc9e17a4a126d37a58 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2902,6 +2902,14 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
|
|
||||||
if (mFirst || windowShouldResize || viewVisibilityChanged || params != null
|
if (mFirst || windowShouldResize || viewVisibilityChanged || params != null
|
||||||
|| mForceNextWindowRelayout) {
|
|| mForceNextWindowRelayout) {
|
||||||
|
if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) {
|
||||||
|
Trace.traceBegin(Trace.TRACE_TAG_VIEW,
|
||||||
|
TextUtils.formatSimple("relayoutWindow#"
|
||||||
|
+ "first=%b/resize=%b/vis=%b/params=%b/force=%b",
|
||||||
|
mFirst, windowShouldResize, viewVisibilityChanged, params != null,
|
||||||
|
mForceNextWindowRelayout));
|
||||||
|
}
|
||||||
|
|
||||||
mForceNextWindowRelayout = false;
|
mForceNextWindowRelayout = false;
|
||||||
|
|
||||||
// If this window is giving internal insets to the window manager, then we want to first
|
// If this window is giving internal insets to the window manager, then we want to first
|
||||||
@@ -3092,6 +3100,10 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
|
} finally {
|
||||||
|
if (Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)) {
|
||||||
|
Trace.traceEnd(Trace.TRACE_TAG_VIEW);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DEBUG_ORIENTATION) Log.v(
|
if (DEBUG_ORIENTATION) Log.v(
|
||||||
|
|||||||
Reference in New Issue
Block a user