Commit c46ccbb0 authored by danakj's avatar danakj Committed by Commit Bot

Remove SetIsDrawable() from WebContentLayerImpl constructor.

Each caller of CreateContentLayer() calls SetDrawsContent() explicitly
already, which sets this same bool, so there is no need to call it in
the constructor or add any other calls.

R=pdr@chromium.org

Bug: 838693
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Iec4c50d3334c733ac62f6756a3e40f392e1dd983
Reviewed-on: https://chromium-review.googlesource.com/1044897Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556249}
parent cf9a8ebf
...@@ -47,7 +47,6 @@ PaintingControlToWeb( ...@@ -47,7 +47,6 @@ PaintingControlToWeb(
WebContentLayerImpl::WebContentLayerImpl(blink::WebContentLayerClient* client) WebContentLayerImpl::WebContentLayerImpl(blink::WebContentLayerClient* client)
: client_(client) { : client_(client) {
layer_ = std::make_unique<WebLayerImpl>(PictureLayer::Create(this)); layer_ = std::make_unique<WebLayerImpl>(PictureLayer::Create(this));
layer_->layer()->SetIsDrawable(true);
} }
WebContentLayerImpl::~WebContentLayerImpl() { WebContentLayerImpl::~WebContentLayerImpl() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment