Simplify transparent backgrounds

https://chromium-review.googlesource.com/669646
This commit is contained in:
Aleksei Kuzmin 2018-03-13 15:38:55 +09:00
parent b6b7707dc3
commit 639be7f7bc

View file

@ -923,9 +923,9 @@ bool OffScreenRenderWidgetHostView::InstallTransparency() {
if (transparent_) { if (transparent_) {
SetBackgroundColor(SkColor()); SetBackgroundColor(SkColor());
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
browser_compositor_->SetHasTransparentBackground(true); browser_compositor_->SetBackgroundColor(SK_ColorTRANSPARENT);
#else #else
compositor_->SetHostHasTransparentBackground(true); compositor_->SetBackgroundColor(SK_ColorTRANSPARENT);
#endif #endif
return true; return true;
} }