Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4720)

Unified Diff: chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: fix comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
diff --git a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
index 763a15a4a8f7f48802a5827276d64ab5ad648fba..d7da4c5a4e3c3d5a2b927b7bfa98ed82dfc10887 100644
--- a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
+++ b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
@@ -260,7 +260,7 @@ void ImmersiveModeControllerAsh::OnImmersiveRevealStarted() {
DestroyMashRevealWidget();
visible_fraction_ = 0;
- browser_view_->top_container()->SetPaintToLayer(true);
+ browser_view_->top_container()->SetPaintToLayer();
browser_view_->top_container()->layer()->SetFillsBoundsOpaquely(false);
UpdateTabIndicators();
LayoutBrowserRootView();
@@ -272,14 +272,14 @@ void ImmersiveModeControllerAsh::OnImmersiveRevealStarted() {
void ImmersiveModeControllerAsh::OnImmersiveRevealEnded() {
DestroyMashRevealWidget();
visible_fraction_ = 0;
- browser_view_->top_container()->SetPaintToLayer(false);
+ browser_view_->top_container()->DestroyLayer();
UpdateTabIndicators();
LayoutBrowserRootView();
}
void ImmersiveModeControllerAsh::OnImmersiveFullscreenExited() {
DestroyMashRevealWidget();
- browser_view_->top_container()->SetPaintToLayer(false);
+ browser_view_->top_container()->DestroyLayer();
UpdateTabIndicators();
LayoutBrowserRootView();
}

Powered by Google App Engine
This is Rietveld 408576698