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

Commit 476895db authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Enable view measure optimization for all windows" into main

parents f6c60281 e082881c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
    }
+11 −0
Original line number Diff line number Diff line
@@ -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"