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

Unified Diff: chrome/browser/ui/views/frame/contents_web_view.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/contents_web_view.cc
diff --git a/chrome/browser/ui/views/frame/contents_web_view.cc b/chrome/browser/ui/views/frame/contents_web_view.cc
index 151823ad34a7d75b21e0648aed23847077a88832..386a6c609612260f5fd501df2b0e67a0c25f2dc5 100644
--- a/chrome/browser/ui/views/frame/contents_web_view.cc
+++ b/chrome/browser/ui/views/frame/contents_web_view.cc
@@ -10,6 +10,7 @@
#include "content/public/browser/web_contents.h"
#include "ui/base/theme_provider.h"
#include "ui/compositor/layer_tree_owner.h"
+#include "ui/compositor/layer_type.h"
#include "ui/views/background.h"
#if defined(USE_AURA)
@@ -105,7 +106,7 @@ void ContentsWebView::CloneWebContentsLayer() {
return;
}
- SetPaintToLayer(true);
+ SetPaintToLayer(ui::LAYER_TEXTURED);
set_layer_owner_delegate(this);
// The cloned layer is in a different coordinate system them our layer (which
@@ -120,7 +121,7 @@ void ContentsWebView::CloneWebContentsLayer() {
void ContentsWebView::DestroyClonedLayer() {
cloned_layer_tree_.reset();
- SetPaintToLayer(false);
+ SetPaintToLayer(ui::LAYER_NOT_DRAWN);
set_layer_owner_delegate(nullptr);
}

Powered by Google App Engine
This is Rietveld 408576698