From 241b5fa94d7942d237a79bcc9634340c22359479 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Fri, 20 Oct 2017 16:47:18 +0300 Subject: [PATCH] FIXME: Update 029-render_widget_host_view_mac.patch TODO: Restore support of transparent windows, see https://github.com/electron/electron/pull/949. https://chromium-review.googlesource.com/c/chromium/src/+/607608 --- patches/029-render_widget_host_view_mac.patch | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/patches/029-render_widget_host_view_mac.patch b/patches/029-render_widget_host_view_mac.patch index 70eee811..b8b62732 100644 --- a/patches/029-render_widget_host_view_mac.patch +++ b/patches/029-render_widget_host_view_mac.patch @@ -2,14 +2,6 @@ diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/cont index faedde495761..c9d2beabd798 100644 --- a/content/browser/renderer_host/render_widget_host_view_mac.mm +++ b/content/browser/renderer_host/render_widget_host_view_mac.mm -@@ -88,6 +88,7 @@ - #include "ui/gfx/geometry/size_conversions.h" - #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" - #include "ui/gl/gl_switches.h" -+#include "ui/gl/gpu_switching_manager.h" - - using content::BrowserAccessibility; - using content::BrowserAccessibilityManager; @@ -138,6 +139,11 @@ RenderWidgetHostView* GetRenderWidgetHostViewToUse( } // namespace @@ -80,14 +72,3 @@ index faedde495761..c9d2beabd798 100644 nil]); } return validAttributesForMarkedText_.get(); -@@ -3537,6 +3555,10 @@ extern NSString *NSTextInputReplacementRangeAttributeName; - } - - - (BOOL)isOpaque { -+ bool wantsTransparent = ui::GpuSwitchingManager::UseTransparent() || -+ (self.window && ![self.window isOpaque]); -+ if (wantsTransparent) -+ return NO; - return opaque_; - } -