OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_IPC_GPU_STRUCT_TRAITS_H_ | 5 #ifndef CC_IPC_GPU_STRUCT_TRAITS_H_ |
6 #define CC_IPC_GPU_STRUCT_TRAITS_H_ | 6 #define CC_IPC_GPU_STRUCT_TRAITS_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "gpu/config/gpu_info.h" | 9 #include "gpu/config/gpu_info.h" |
10 #include "gpu/ipc/common/dx_diag_node_struct_traits.h" | 10 #include "gpu/ipc/common/dx_diag_node_struct_traits.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 } | 237 } |
238 | 238 |
239 static bool passthrough_cmd_decoder(const gpu::GPUInfo& input) { | 239 static bool passthrough_cmd_decoder(const gpu::GPUInfo& input) { |
240 return input.passthrough_cmd_decoder; | 240 return input.passthrough_cmd_decoder; |
241 } | 241 } |
242 | 242 |
243 static bool supports_overlays(const gpu::GPUInfo& input) { | 243 static bool supports_overlays(const gpu::GPUInfo& input) { |
244 return input.supports_overlays; | 244 return input.supports_overlays; |
245 } | 245 } |
246 | 246 |
| 247 static bool hdr(const gpu::GPUInfo& input) { |
| 248 return input.hdr; |
| 249 } |
| 250 |
247 static gpu::CollectInfoResult basic_info_state(const gpu::GPUInfo& input) { | 251 static gpu::CollectInfoResult basic_info_state(const gpu::GPUInfo& input) { |
248 return input.basic_info_state; | 252 return input.basic_info_state; |
249 } | 253 } |
250 | 254 |
251 static gpu::CollectInfoResult context_info_state(const gpu::GPUInfo& input) { | 255 static gpu::CollectInfoResult context_info_state(const gpu::GPUInfo& input) { |
252 return input.context_info_state; | 256 return input.context_info_state; |
253 } | 257 } |
254 #if defined(OS_WIN) | 258 #if defined(OS_WIN) |
255 static const gpu::DxDiagNode& dx_diagnostics(const gpu::GPUInfo& input) { | 259 static const gpu::DxDiagNode& dx_diagnostics(const gpu::GPUInfo& input) { |
256 return input.dx_diagnostics; | 260 return input.dx_diagnostics; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 static uint64_t rgba_visual(const gpu::GPUInfo& input) { | 300 static uint64_t rgba_visual(const gpu::GPUInfo& input) { |
297 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 301 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
298 return input.rgba_visual; | 302 return input.rgba_visual; |
299 #endif | 303 #endif |
300 return 0; | 304 return 0; |
301 } | 305 } |
302 }; | 306 }; |
303 | 307 |
304 } // namespace mojo | 308 } // namespace mojo |
305 #endif // CC_IPC_GPU_STRUCT_TRAITS_H_ | 309 #endif // CC_IPC_GPU_STRUCT_TRAITS_H_ |
OLD | NEW |