diff options
author | jbauman <jbauman@chromium.org> | 2015-06-03 19:23:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-04 02:23:51 +0000 |
commit | 8da589acbe17b327b69abbece0c1c36a1a3b1f65 (patch) | |
tree | 0cb33611306faa3cbe69d9d8fe9c50d3784cb2aa /ash/host | |
parent | 613559e5bc149bf560e5422c31e17f1932e9baf6 (diff) | |
download | chromium_src-8da589acbe17b327b69abbece0c1c36a1a3b1f65.zip chromium_src-8da589acbe17b327b69abbece0c1c36a1a3b1f65.tar.gz chromium_src-8da589acbe17b327b69abbece0c1c36a1a3b1f65.tar.bz2 |
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}
Diffstat (limited to 'ash/host')
-rw-r--r-- | ash/host/ash_window_tree_host_unified.cc | 4 | ||||
-rw-r--r-- | ash/host/ash_window_tree_host_unified.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc index b36223f..2e9db76 100644 --- a/ash/host/ash_window_tree_host_unified.cc +++ b/ash/host/ash_window_tree_host_unified.cc @@ -110,10 +110,10 @@ gfx::AcceleratedWidget AshWindowTreeHostUnified::GetAcceleratedWidget() { return gfx::kNullAcceleratedWidget; } -void AshWindowTreeHostUnified::Show() { +void AshWindowTreeHostUnified::ShowImpl() { } -void AshWindowTreeHostUnified::Hide() { +void AshWindowTreeHostUnified::HideImpl() { } gfx::Rect AshWindowTreeHostUnified::GetBounds() const { diff --git a/ash/host/ash_window_tree_host_unified.h b/ash/host/ash_window_tree_host_unified.h index aa9ab4c..843ff03 100644 --- a/ash/host/ash_window_tree_host_unified.h +++ b/ash/host/ash_window_tree_host_unified.h @@ -47,8 +47,8 @@ class AshWindowTreeHostUnified : public AshWindowTreeHost, // aura::WindowTreeHost: ui::EventSource* GetEventSource() override; gfx::AcceleratedWidget GetAcceleratedWidget() override; - void Show() override; - void Hide() override; + void ShowImpl() override; + void HideImpl() override; gfx::Rect GetBounds() const override; void SetBounds(const gfx::Rect& bounds) override; gfx::Transform GetRootTransform() const override; |