Skip to content

Commit c36eead

Browse files
jefry-vcuberogerwang
authored andcommitted
[Transparency][Win][OSX] use disable-gpu-compositing instead of disable-gpu
1 parent ef6d067 commit c36eead

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

docs/For Users/Advanced/Transparent Window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You can enable transparency clickthrough on Windows and Mac. This feature enable
3939

4040
To enable transparency clickthrough, you need following command line options:
4141
```params
42-
--disable-gpu --force-cpu-draw
42+
--disable-gpu-compositing --force-cpu-draw
4343
```
4444

4545
!!! note

src/browser/native_window.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ NativeWindow::NativeWindow(const base::WeakPtr<content::Shell>& shell,
8282
content::g_support_transparency = !base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kmDisableTransparency);
8383
if (content::g_support_transparency) {
8484
content::g_force_cpu_draw = base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceCpuDraw);
85-
if (content::g_force_cpu_draw) {
86-
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableGpu)) {
87-
content::g_force_cpu_draw = false;
88-
LOG(WARNING) << "switch " << switches::kForceCpuDraw << " must be used with switch " << switches::kDisableGpu;
89-
}
90-
}
9185
manifest->GetBoolean(switches::kmTransparent, &transparent_);
9286
}
9387
LoadAppIconFromPackage(manifest);

0 commit comments

Comments
 (0)