From 639be7f7bcdd6295f6abe945a2f497261772ae5c Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Tue, 13 Mar 2018 15:38:55 +0900 Subject: [PATCH] Simplify transparent backgrounds https://chromium-review.googlesource.com/669646 --- atom/browser/osr/osr_render_widget_host_view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/osr/osr_render_widget_host_view.cc b/atom/browser/osr/osr_render_widget_host_view.cc index 10075b2f9eb3..7bc7c69afeaf 100644 --- a/atom/browser/osr/osr_render_widget_host_view.cc +++ b/atom/browser/osr/osr_render_widget_host_view.cc @@ -923,9 +923,9 @@ bool OffScreenRenderWidgetHostView::InstallTransparency() { if (transparent_) { SetBackgroundColor(SkColor()); #if defined(OS_MACOSX) - browser_compositor_->SetHasTransparentBackground(true); + browser_compositor_->SetBackgroundColor(SK_ColorTRANSPARENT); #else - compositor_->SetHostHasTransparentBackground(true); + compositor_->SetBackgroundColor(SK_ColorTRANSPARENT); #endif return true; }