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

Unified Diff: gpu/ipc/service/direct_composition_surface_win.cc

Issue 2781833003: Only use overlays on windows 10 anniversary update and later. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 acbc271b0dd81360928050c87c9ecec203fc9e08..b04f7006e48b016fdec01305f4936393f42e0dfa 100644
--- a/gpu/ipc/service/direct_composition_surface_win.cc
+++ b/gpu/ipc/service/direct_composition_surface_win.cc
@@ -12,6 +12,7 @@
#include "base/synchronization/waitable_event.h"
#include "base/trace_event/trace_event.h"
#include "base/win/scoped_handle.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"
@@ -634,6 +635,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);
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698