[go: nahoru, domu]

Do not change compositor visibility on minimize with native occlusion

Currently, the ui compositor will be set to not visible if it is
minimized. But, if we have native occlusion controlling visibility, then
the window state should be irrelevant to the visibility. This CL stops
visibility being changed based on window state.

Bug: 1456640, 1278648
Test: CQ and local testing
Change-Id: Id57d9370542d10ab4d096db109f529f74abb57e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5237810
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Eliot Courtney <edcourtney@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1260198}
diff --git a/ui/aura/BUILD.gn b/ui/aura/BUILD.gn
index 50ca856..605caa8 100644
--- a/ui/aura/BUILD.gn
+++ b/ui/aura/BUILD.gn
@@ -35,6 +35,7 @@
     "host_frame_rate_throttler.h",
     "input_state_lookup.h",
     "layout_manager.h",
+    "native_window_occlusion_tracker.h",
     "null_window_targeter.h",
     "scoped_enable_unadjusted_mouse_events.h",
     "scoped_keyboard_hook.h",
@@ -80,7 +81,6 @@
     "input_state_lookup.cc",
     "layout_manager.cc",
     "native_window_occlusion_tracker.cc",
-    "native_window_occlusion_tracker.h",
     "null_window_targeter.cc",
     "scoped_keyboard_hook.cc",
     "scoped_simple_keyboard_hook.cc",