Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1092)

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 2164213002: cc: Single fullscreen overlay validatator flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make reflector_impl_unittest.cc compile. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698