mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Simplify transparent backgrounds
https://chromium-review.googlesource.com/669646
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user