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

Unified Diff: chrome/browser/ui/views/frame/contents_web_view.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/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..fab9246b5a424ba911b62f66af0d71ec09b88176 100644
--- a/chrome/browser/ui/views/frame/contents_web_view.cc
+++ b/chrome/browser/ui/views/frame/contents_web_view.cc
@@ -105,7 +105,7 @@ void ContentsWebView::CloneWebContentsLayer() {
return;
}
- SetPaintToLayer(true);
+ SetPaintToLayer();
set_layer_owner_delegate(this);
// The cloned layer is in a different coordinate system them our layer (which
@@ -120,7 +120,7 @@ void ContentsWebView::CloneWebContentsLayer() {
void ContentsWebView::DestroyClonedLayer() {
cloned_layer_tree_.reset();
- SetPaintToLayer(false);
+ DestroyLayer();
set_layer_owner_delegate(nullptr);
}

Powered by Google App Engine
This is Rietveld 408576698