Index: gpu/ipc/service/direct_composition_surface_win.cc |
diff --git a/gpu/ipc/service/direct_composition_surface_win.cc b/gpu/ipc/service/direct_composition_surface_win.cc |
index f7caefecf454b30c6b149a5c606f0f5a9625fb18..7f1d0f2c479e434f6b5546128c562ff2257682da 100644 |
--- a/gpu/ipc/service/direct_composition_surface_win.cc |
+++ b/gpu/ipc/service/direct_composition_surface_win.cc |
@@ -6,6 +6,7 @@ |
#include "base/optional.h" |
#include "base/synchronization/waitable_event.h" |
+#include "base/win/windows_version.h" |
#include "gpu/ipc/service/gpu_channel_manager.h" |
#include "gpu/ipc/service/gpu_channel_manager_delegate.h" |
#include "gpu/ipc/service/switches.h" |
@@ -78,6 +79,11 @@ bool DirectCompositionSurfaceWin::AreOverlaysSupported() { |
if (command_line->HasSwitch(switches::kDisableDirectCompositionLayers)) |
return false; |
+ // Before Windows 10 Anniversary Update (Redstone 1), overlay planes |
+ // wouldn't be assigned to non-UWP apps. |
+ if (base::win::GetVersion() < base::win::VERSION_WIN10_R1) |
+ return false; |
+ |
base::win::ScopedComPtr<ID3D11Device> d3d11_device = |
gl::QueryD3D11DeviceObjectFromANGLE(); |
DCHECK(d3d11_device); |