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

Unified Diff: cc/blink/web_content_layer_impl.cc

Issue 1179653004: Remove non-impl-side painting as an option for blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removenoimplblink: . Created 5 years, 6 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
« no previous file with comments | « build/ios/grit_whitelist.txt ('k') | cc/blink/web_image_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_content_layer_impl.cc
diff --git a/cc/blink/web_content_layer_impl.cc b/cc/blink/web_content_layer_impl.cc
index 98ff60b945efd53c0cb96a669e5ca1148d1b9748..dcdba6b1876c964e08ba99c58aa174d0f1fb2e67 100644
--- a/cc/blink/web_content_layer_impl.cc
+++ b/cc/blink/web_content_layer_impl.cc
@@ -39,20 +39,13 @@ PaintingControlToWeb(
WebContentLayerImpl::WebContentLayerImpl(blink::WebContentLayerClient* client)
: client_(client) {
- if (WebLayerImpl::UsingPictureLayer())
- layer_ = make_scoped_ptr(new WebLayerImpl(
- PictureLayer::Create(WebLayerImpl::LayerSettings(), this)));
- else
- layer_ = make_scoped_ptr(new WebLayerImpl(
- ContentLayer::Create(WebLayerImpl::LayerSettings(), this)));
+ layer_ = make_scoped_ptr(new WebLayerImpl(
+ PictureLayer::Create(WebLayerImpl::LayerSettings(), this)));
layer_->layer()->SetIsDrawable(true);
}
WebContentLayerImpl::~WebContentLayerImpl() {
- if (WebLayerImpl::UsingPictureLayer())
- static_cast<PictureLayer*>(layer_->layer())->ClearClient();
- else
- static_cast<ContentLayer*>(layer_->layer())->ClearClient();
+ static_cast<PictureLayer*>(layer_->layer())->ClearClient();
}
blink::WebLayer* WebContentLayerImpl::layer() {
« no previous file with comments | « build/ios/grit_whitelist.txt ('k') | cc/blink/web_image_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698