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

Unified Diff: gpu/ipc/common/gpu_info_struct_traits.h

Issue 2938543002: Detect HDR capability (Closed)
Patch Set: moved to dc surface 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
Index: gpu/ipc/common/gpu_info_struct_traits.h
diff --git a/gpu/ipc/common/gpu_info_struct_traits.h b/gpu/ipc/common/gpu_info_struct_traits.h
index 415fc49e9d4154ac5bec6f28198bb054544cb15c..534c3a2cc9f385fb5be9b9f0f94ed794542857c8 100644
--- a/gpu/ipc/common/gpu_info_struct_traits.h
+++ b/gpu/ipc/common/gpu_info_struct_traits.h
@@ -244,6 +244,10 @@ struct StructTraits<gpu::mojom::GpuInfoDataView, gpu::GPUInfo> {
return input.supports_overlays;
}
+ static bool hdr(const gpu::GPUInfo& input) {
+ return input.hdr;
+ }
+
static gpu::CollectInfoResult basic_info_state(const gpu::GPUInfo& input) {
return input.basic_info_state;
}

Powered by Google App Engine
This is Rietveld 408576698