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

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

Issue 2786303002: Add "Supports overlays" information to about:gpu. (Closed)
Patch Set: change to AddBool 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 | « gpu/ipc/common/struct_traits_unittest.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/gpu_init.cc
diff --git a/gpu/ipc/service/gpu_init.cc b/gpu/ipc/service/gpu_init.cc
index af5fb220275ea0949fc1a82406a99792e722839a..de7fec9b424e306890480703d7824e123350642d 100644
--- a/gpu/ipc/service/gpu_init.cc
+++ b/gpu/ipc/service/gpu_init.cc
@@ -26,6 +26,10 @@
#include "ui/ozone/public/ozone_platform.h"
#endif
+#if defined(OS_WIN)
+#include "gpu/ipc/service/direct_composition_surface_win.h"
+#endif
+
namespace gpu {
namespace {
@@ -98,6 +102,14 @@ void CollectGraphicsInfo(gpu::GPUInfo& gpu_info) {
case gpu::kCollectInfoSuccess:
break;
}
+
+#if defined(OS_WIN)
+ if (gl::GetGLImplementation() == gl::kGLImplementationEGLGLES2 &&
+ gl::GLSurfaceEGL::IsDirectCompositionSupported() &&
+ DirectCompositionSurfaceWin::AreOverlaysSupported()) {
+ gpu_info.supports_overlays = true;
+ }
+#endif // defined(OS_WIN)
}
#endif // defined(OS_MACOSX)
« no previous file with comments | « gpu/ipc/common/struct_traits_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698