| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 218 } |
| 219 | 219 |
| 220 static const std::string& gl_ws_extensions(const gpu::GPUInfo& input) { | 220 static const std::string& gl_ws_extensions(const gpu::GPUInfo& input) { |
| 221 return input.gl_ws_extensions; | 221 return input.gl_ws_extensions; |
| 222 } | 222 } |
| 223 | 223 |
| 224 static uint32_t gl_reset_notification_strategy(const gpu::GPUInfo& input) { | 224 static uint32_t gl_reset_notification_strategy(const gpu::GPUInfo& input) { |
| 225 return input.gl_reset_notification_strategy; | 225 return input.gl_reset_notification_strategy; |
| 226 } | 226 } |
| 227 | 227 |
| 228 static bool can_lose_context(const gpu::GPUInfo& input) { | |
| 229 return input.can_lose_context; | |
| 230 } | |
| 231 | |
| 232 static bool software_rendering(const gpu::GPUInfo& input) { | 228 static bool software_rendering(const gpu::GPUInfo& input) { |
| 233 return input.software_rendering; | 229 return input.software_rendering; |
| 234 } | 230 } |
| 235 | 231 |
| 236 static bool direct_rendering(const gpu::GPUInfo& input) { | 232 static bool direct_rendering(const gpu::GPUInfo& input) { |
| 237 return input.direct_rendering; | 233 return input.direct_rendering; |
| 238 } | 234 } |
| 239 | 235 |
| 240 static bool sandboxed(const gpu::GPUInfo& input) { return input.sandboxed; } | 236 static bool sandboxed(const gpu::GPUInfo& input) { return input.sandboxed; } |
| 241 | 237 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 return input.video_encode_accelerator_supported_profiles; | 281 return input.video_encode_accelerator_supported_profiles; |
| 286 } | 282 } |
| 287 | 283 |
| 288 static bool jpeg_decode_accelerator_supported(const gpu::GPUInfo& input) { | 284 static bool jpeg_decode_accelerator_supported(const gpu::GPUInfo& input) { |
| 289 return input.jpeg_decode_accelerator_supported; | 285 return input.jpeg_decode_accelerator_supported; |
| 290 } | 286 } |
| 291 }; | 287 }; |
| 292 | 288 |
| 293 } // namespace mojo | 289 } // namespace mojo |
| 294 #endif // CC_IPC_GPU_STRUCT_TRAITS_H_ | 290 #endif // CC_IPC_GPU_STRUCT_TRAITS_H_ |
| OLD | NEW |