| Index: content/browser/compositor/gpu_process_transport_factory.cc
|
| diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
|
| index 821f642ac2a9ee5cfa4d12fa336c1345a82859fe..af1f5fe02afd3f6310508fd9b37ed3e7108bedfa 100644
|
| --- a/content/browser/compositor/gpu_process_transport_factory.cc
|
| +++ b/content/browser/compositor/gpu_process_transport_factory.cc
|
| @@ -237,13 +237,16 @@ CreateOverlayCandidateValidator(gfx::AcceleratedWidget widget) {
|
| #if defined(USE_OZONE)
|
| base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
| if (command_line->HasSwitch(switches::kEnableHardwareOverlays)) {
|
| + std::string enable_overlay_flag =
|
| + command_line->GetSwitchValueASCII(switches::kEnableHardwareOverlays);
|
| std::unique_ptr<ui::OverlayCandidatesOzone> overlay_candidates =
|
| ui::OzonePlatform::GetInstance()
|
| ->GetOverlayManager()
|
| ->CreateOverlayCandidates(widget);
|
| validator.reset(
|
| new display_compositor::CompositorOverlayCandidateValidatorOzone(
|
| - std::move(overlay_candidates)));
|
| + std::move(overlay_candidates),
|
| + enable_overlay_flag == "single-fullscreen"));
|
| }
|
| #elif defined(OS_MACOSX)
|
| // Overlays are only supported through the remote layer API.
|
|
|