|
@@ -31,6 +31,7 @@
|
|
|
#include "skia/ext/skia_utils_mac.h"
|
|
|
#include "third_party/skia/include/core/SkRegion.h"
|
|
|
#include "ui/gfx/skia_util.h"
|
|
|
+#include "ui/gl/gpu_switching_manager.h"
|
|
|
|
|
|
namespace {
|
|
|
|
|
@@ -1712,6 +1713,7 @@ void NativeWindowMac::SetVibrancy(const std::string& type) {
|
|
|
|
|
|
[vibrant_view removeFromSuperview];
|
|
|
[window_ setVibrantView:nil];
|
|
|
+ ui::GpuSwitchingManager::SetTransparent(transparent());
|
|
|
|
|
|
return;
|
|
|
}
|
|
@@ -1719,9 +1721,12 @@ void NativeWindowMac::SetVibrancy(const std::string& type) {
|
|
|
SetRenderWidgetHostOpaque(false);
|
|
|
background_color_before_vibrancy_.reset([window_ backgroundColor]);
|
|
|
transparency_before_vibrancy_ = [window_ titlebarAppearsTransparent];
|
|
|
+ ui::GpuSwitchingManager::SetTransparent(true);
|
|
|
|
|
|
- [window_ setTitlebarAppearsTransparent:YES];
|
|
|
- [window_ setBackgroundColor:[NSColor clearColor]];
|
|
|
+ if (title_bar_style_ != NORMAL) {
|
|
|
+ [window_ setTitlebarAppearsTransparent:YES];
|
|
|
+ [window_ setBackgroundColor:[NSColor clearColor]];
|
|
|
+ }
|
|
|
|
|
|
NSVisualEffectView* effect_view = (NSVisualEffectView*)vibrant_view;
|
|
|
if (effect_view == nil) {
|