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() { |