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

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

Issue 2938543002: Detect HDR capability (Closed)
Patch Set: histograms updated Created 3 years, 6 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/service/direct_composition_surface_win.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | 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 5cca62301c9ae59fc74ead00440e1fbd529a9c89..c0c0c5f010d4cb43fb07f7c0142a6eb2b6eac6b3 100644
--- a/gpu/ipc/service/gpu_init.cc
+++ b/gpu/ipc/service/gpu_init.cc
@@ -28,6 +28,7 @@
#endif
#if defined(OS_WIN)
+#include "gpu/ipc/service/child_window_surface_win.h"
#include "gpu/ipc/service/direct_composition_surface_win.h"
#endif
@@ -110,6 +111,9 @@ void CollectGraphicsInfo(gpu::GPUInfo& gpu_info) {
DirectCompositionSurfaceWin::AreOverlaysSupported()) {
gpu_info.supports_overlays = true;
}
+ if (DirectCompositionSurfaceWin::IsHDRSupported()) {
+ gpu_info.hdr = true;
+ }
#endif // defined(OS_WIN)
}
#endif // defined(OS_MACOSX)
« no previous file with comments | « gpu/ipc/service/direct_composition_surface_win.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698