Hide compositor when DesktopWindowTreeHostWin::Hide is called.
This avoids trying to draw hidden windows and improves performance of resize because status bubble isn't continually redrawn.
Review URL: https://codereview.chromium.org/1157433008
Cr-Commit-Position: refs/heads/master@{#332768}
diff --git a/ui/aura/window_tree_host.h b/ui/aura/window_tree_host.h
index f4dc23e27..27b104c0 100644
--- a/ui/aura/window_tree_host.h
+++ b/ui/aura/window_tree_host.h
@@ -124,10 +124,10 @@
virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
// Shows the WindowTreeHost.
- virtual void Show() = 0;
+ void Show();
// Hides the WindowTreeHost.
- virtual void Hide() = 0;
+ void Hide();
// Gets/Sets the size of the WindowTreeHost (in pixels).
virtual gfx::Rect GetBounds() const = 0;
@@ -166,6 +166,12 @@
// kCalled when the cursor visibility has changed.
virtual void OnCursorVisibilityChangedNative(bool show) = 0;
+ // Shows the WindowTreeHost.
+ virtual void ShowImpl() = 0;
+
+ // Hides the WindowTreeHost.
+ virtual void HideImpl() = 0;
+
private:
friend class test::WindowTreeHostTestApi;