Skip to content

Commit

Permalink
[Transparency][Win][OSX] use disable-gpu-compositing instead of disab…
Browse files Browse the repository at this point in the history
…le-gpu
  • Loading branch information
jefry-vcube authored and rogerwang committed Jul 20, 2017
1 parent ef6d067 commit c36eead
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion docs/For Users/Advanced/Transparent Window.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You can enable transparency clickthrough on Windows and Mac. This feature enable

To enable transparency clickthrough, you need following command line options:
```params
--disable-gpu --force-cpu-draw
--disable-gpu-compositing --force-cpu-draw
```

!!! note
Expand Down
6 changes: 0 additions & 6 deletions src/browser/native_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ NativeWindow::NativeWindow(const base::WeakPtr<content::Shell>& shell,
content::g_support_transparency = !base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kmDisableTransparency);
if (content::g_support_transparency) {
content::g_force_cpu_draw = base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceCpuDraw);
if (content::g_force_cpu_draw) {
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableGpu)) {
content::g_force_cpu_draw = false;
LOG(WARNING) << "switch " << switches::kForceCpuDraw << " must be used with switch " << switches::kDisableGpu;
}
}
manifest->GetBoolean(switches::kmTransparent, &transparent_);
}
LoadAppIconFromPackage(manifest);
Expand Down

0 comments on commit c36eead

Please sign in to comment.