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

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

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: Refactor 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..3ee1e66844797656db025c17237b6420892fcb62 100644
--- a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
+++ b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
@@ -25,6 +25,7 @@
#include "ui/aura/mus/mus_util.h"
#include "ui/aura/mus/property_converter.h"
#include "ui/aura/window.h"
+#include "ui/compositor/layer_type.h"
#include "ui/compositor/paint_context.h"
#include "ui/compositor/paint_recorder.h"
#include "ui/views/mus/mus_client.h"
@@ -260,7 +261,7 @@ void ImmersiveModeControllerAsh::OnImmersiveRevealStarted() {
DestroyMashRevealWidget();
visible_fraction_ = 0;
- browser_view_->top_container()->SetPaintToLayer(true);
+ browser_view_->top_container()->SetPaintToLayer(ui::LAYER_TEXTURED);
browser_view_->top_container()->layer()->SetFillsBoundsOpaquely(false);
UpdateTabIndicators();
LayoutBrowserRootView();
@@ -272,14 +273,14 @@ void ImmersiveModeControllerAsh::OnImmersiveRevealStarted() {
void ImmersiveModeControllerAsh::OnImmersiveRevealEnded() {
DestroyMashRevealWidget();
visible_fraction_ = 0;
- browser_view_->top_container()->SetPaintToLayer(false);
+ browser_view_->top_container()->SetPaintToLayer(ui::LAYER_NOT_DRAWN);
UpdateTabIndicators();
LayoutBrowserRootView();
}
void ImmersiveModeControllerAsh::OnImmersiveFullscreenExited() {
DestroyMashRevealWidget();
- browser_view_->top_container()->SetPaintToLayer(false);
+ browser_view_->top_container()->SetPaintToLayer(ui::LAYER_NOT_DRAWN);
UpdateTabIndicators();
LayoutBrowserRootView();
}

Powered by Google App Engine
This is Rietveld 408576698