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 "gfx/native_widget_types.h" | |
16 #include "gfx/rect.h" | |
17 #include "gfx/size.h" | |
18 #include "gpu/ipc/gpu_command_buffer_traits.h" | 15 #include "gpu/ipc/gpu_command_buffer_traits.h" |
19 #include "gpu/command_buffer/common/command_buffer.h" | 16 #include "gpu/command_buffer/common/command_buffer.h" |
| 17 #include "ui/gfx/native_widget_types.h" |
| 18 #include "ui/gfx/rect.h" |
| 19 #include "ui/gfx/size.h" |
20 | 20 |
21 #if defined(OS_MACOSX) | 21 #if defined(OS_MACOSX) |
22 // Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface | 22 // Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface |
23 // message, which has too many parameters to be sent with the | 23 // message, which has too many parameters to be sent with the |
24 // predefined IPC macros. | 24 // predefined IPC macros. |
25 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params { | 25 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params { |
26 int32 renderer_id; | 26 int32 renderer_id; |
27 int32 render_view_id; | 27 int32 render_view_id; |
28 gfx::PluginWindowHandle window; | 28 gfx::PluginWindowHandle window; |
29 int32 width; | 29 int32 width; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 struct ParamTraits<GPUCreateCommandBufferConfig> { | 92 struct ParamTraits<GPUCreateCommandBufferConfig> { |
93 typedef GPUCreateCommandBufferConfig param_type; | 93 typedef GPUCreateCommandBufferConfig param_type; |
94 static void Write(Message* m, const param_type& p); | 94 static void Write(Message* m, const param_type& p); |
95 static bool Read(const Message* m, void** iter, param_type* p); | 95 static bool Read(const Message* m, void** iter, param_type* p); |
96 static void Log(const param_type& p, std::string* l); | 96 static void Log(const param_type& p, std::string* l); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace IPC | 99 } // namespace IPC |
100 | 100 |
101 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_ | 101 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_ |
OLD | NEW |