OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_GPU_PARAM_TRAITS_H_ | 5 #ifndef CHROME_COMMON_GPU_PARAM_TRAITS_H_ |
6 #define CHROME_COMMON_GPU_PARAM_TRAITS_H_ | 6 #define CHROME_COMMON_GPU_PARAM_TRAITS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
11 #include "chrome/common/common_param_traits.h" | 11 #include "chrome/common/common_param_traits.h" |
12 #include "chrome/common/dx_diag_node.h" | 12 #include "chrome/common/dx_diag_node.h" |
13 #include "chrome/common/gpu_create_command_buffer_config.h" | 13 #include "chrome/common/gpu_create_command_buffer_config.h" |
14 #include "chrome/common/gpu_info.h" | 14 #include "chrome/common/gpu_info.h" |
15 #include "chrome/common/gpu_native_window_handle.h" | |
16 #include "gfx/native_widget_types.h" | 15 #include "gfx/native_widget_types.h" |
17 #include "gfx/rect.h" | 16 #include "gfx/rect.h" |
18 #include "gfx/size.h" | 17 #include "gfx/size.h" |
19 #include "gpu/command_buffer/common/command_buffer.h" | 18 #include "gpu/command_buffer/common/command_buffer.h" |
20 | 19 |
21 #if defined(OS_MACOSX) | 20 #if defined(OS_MACOSX) |
22 // Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface | 21 // Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface |
23 // message, which has too many parameters to be sent with the | 22 // message, which has too many parameters to be sent with the |
24 // predefined IPC macros. | 23 // predefined IPC macros. |
25 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params { | 24 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 struct ParamTraits<GPUCreateCommandBufferConfig> { | 72 struct ParamTraits<GPUCreateCommandBufferConfig> { |
74 typedef GPUCreateCommandBufferConfig param_type; | 73 typedef GPUCreateCommandBufferConfig param_type; |
75 static void Write(Message* m, const param_type& p); | 74 static void Write(Message* m, const param_type& p); |
76 static bool Read(const Message* m, void** iter, param_type* p); | 75 static bool Read(const Message* m, void** iter, param_type* p); |
77 static void Log(const param_type& p, std::string* l); | 76 static void Log(const param_type& p, std::string* l); |
78 }; | 77 }; |
79 | 78 |
80 } // namespace IPC | 79 } // namespace IPC |
81 | 80 |
82 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_ | 81 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_ |
OLD | NEW |