Commit 1cdbef88 authored by Christopher Cameron's avatar Christopher Cameron Committed by Commit Bot

MacViews: Do not set delegating layer background color

Setting the background color on delegated layers can cause artifacts
(only non-tiled areas get the background color). This also appears
not to have been necessary.

Bug: 845968, 840173
Change-Id: If8eca7d3eb793952a9a606a2d27683b02d2c4b3f
Reviewed-on: https://chromium-review.googlesource.com/1071117Reviewed-by: default avatarSidney San Martín <sdy@chromium.org>
Commit-Queue: ccameron <ccameron@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561390}
parent 4df0ff8a
......@@ -310,7 +310,6 @@ void BrowserCompositorMac::OnDidNotProduceFrame(const viz::BeginFrameAck& ack) {
void BrowserCompositorMac::SetBackgroundColor(SkColor background_color) {
background_color_ = background_color;
root_layer_->SetColor(background_color_);
if (recyclable_compositor_)
recyclable_compositor_->compositor()->SetBackgroundColor(background_color_);
}
......
......@@ -204,8 +204,6 @@ RenderWidgetHostViewMac::~RenderWidgetHostViewMac() {
}
void RenderWidgetHostViewMac::SetParentUiLayer(ui::Layer* parent_ui_layer) {
// TODO(ccameron): This path appears to be buggy.
return;
if (parent_ui_layer)
display_only_using_parent_ui_layer_ = true;
if (browser_compositor_)
......
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