| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 } | 277 } |
| 278 | 278 |
| 279 static std::vector<gpu::VideoEncodeAcceleratorSupportedProfile> | 279 static std::vector<gpu::VideoEncodeAcceleratorSupportedProfile> |
| 280 video_encode_accelerator_supported_profiles(const gpu::GPUInfo& input) { | 280 video_encode_accelerator_supported_profiles(const gpu::GPUInfo& input) { |
| 281 return input.video_encode_accelerator_supported_profiles; | 281 return input.video_encode_accelerator_supported_profiles; |
| 282 } | 282 } |
| 283 | 283 |
| 284 static bool jpeg_decode_accelerator_supported(const gpu::GPUInfo& input) { | 284 static bool jpeg_decode_accelerator_supported(const gpu::GPUInfo& input) { |
| 285 return input.jpeg_decode_accelerator_supported; | 285 return input.jpeg_decode_accelerator_supported; |
| 286 } | 286 } |
| 287 |
| 288 static uint64_t system_visual(const gpu::GPUInfo& input) { |
| 289 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 290 return input.system_visual; |
| 291 #endif |
| 292 return 0; |
| 293 } |
| 294 |
| 295 static uint64_t rgba_visual(const gpu::GPUInfo& input) { |
| 296 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 297 return input.rgba_visual; |
| 298 #endif |
| 299 return 0; |
| 300 } |
| 287 }; | 301 }; |
| 288 | 302 |
| 289 } // namespace mojo | 303 } // namespace mojo |
| 290 #endif // CC_IPC_GPU_STRUCT_TRAITS_H_ | 304 #endif // CC_IPC_GPU_STRUCT_TRAITS_H_ |
| OLD | NEW |