Loading core/java/android/view/ViewRootImpl.java +3 −0 Original line number Diff line number Diff line Loading @@ -3474,6 +3474,9 @@ public final class ViewRootImpl implements ViewParent, * TODO(b/260382739): Apply this to all windows. */ private static boolean shouldOptimizeMeasure(final WindowManager.LayoutParams lp) { if (com.android.window.flags.Flags.reduceUnnecessaryMeasure()) { return true; } return (lp.privateFlags & PRIVATE_FLAG_OPTIMIZE_MEASURE) != 0; } Loading core/java/android/window/flags/windowing_frontend.aconfig +11 −0 Original line number Diff line number Diff line Loading @@ -286,6 +286,17 @@ flag { } } flag { name: "reduce_unnecessary_measure" namespace: "windowing_frontend" description: "Skip measuring view hierarchy if the size is known" bug: "260382739" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } } flag { name: "ensure_wallpaper_in_transitions" namespace: "windowing_frontend" Loading Loading
core/java/android/view/ViewRootImpl.java +3 −0 Original line number Diff line number Diff line Loading @@ -3474,6 +3474,9 @@ public final class ViewRootImpl implements ViewParent, * TODO(b/260382739): Apply this to all windows. */ private static boolean shouldOptimizeMeasure(final WindowManager.LayoutParams lp) { if (com.android.window.flags.Flags.reduceUnnecessaryMeasure()) { return true; } return (lp.privateFlags & PRIVATE_FLAG_OPTIMIZE_MEASURE) != 0; } Loading
core/java/android/window/flags/windowing_frontend.aconfig +11 −0 Original line number Diff line number Diff line Loading @@ -286,6 +286,17 @@ flag { } } flag { name: "reduce_unnecessary_measure" namespace: "windowing_frontend" description: "Skip measuring view hierarchy if the size is known" bug: "260382739" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } } flag { name: "ensure_wallpaper_in_transitions" namespace: "windowing_frontend" Loading