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

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

Issue 2933453002: Always use DirectCompositionSurfaceWin when using DirectComposition (Closed)
Patch Set: remove include Created 3 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
« no previous file with comments | « no previous file | gpu/command_buffer/common/capabilities.h » ('j') | gpu/command_buffer/common/capabilities.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7492ff09abb1e06b791d138d6cdbcd85808ec8e1..8f623ba6047d406c39a5ce821faa338b350494d9 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -539,7 +539,7 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
} else {
std::unique_ptr<viz::CompositorOverlayCandidateValidator> validator;
#if defined(OS_WIN)
- if (capabilities.dc_layers)
+ if (capabilities.dc_layers && capabilities.use_overlays_for_video)
validator = CreateOverlayCandidateValidator(compositor->widget());
#elif !defined(OS_MACOSX)
// Overlays are only supported on surfaceless output surfaces on Mac.
« no previous file with comments | « no previous file | gpu/command_buffer/common/capabilities.h » ('j') | gpu/command_buffer/common/capabilities.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698