Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: chrome/common/gpu_param_traits.h

Issue 6400007: Implement proxy for 3d-related interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/gpu_messages.cc ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 15 #include "gfx/native_widget_types.h"
16 #include "gfx/rect.h" 16 #include "gfx/rect.h"
17 #include "gfx/size.h" 17 #include "gfx/size.h"
18 #include "gpu/ipc/gpu_command_buffer_traits.h"
18 #include "gpu/command_buffer/common/command_buffer.h" 19 #include "gpu/command_buffer/common/command_buffer.h"
19 20
20 #if defined(OS_MACOSX) 21 #if defined(OS_MACOSX)
21 // Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface 22 // Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface
22 // message, which has too many parameters to be sent with the 23 // message, which has too many parameters to be sent with the
23 // predefined IPC macros. 24 // predefined IPC macros.
24 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params { 25 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params {
25 int32 renderer_id; 26 int32 renderer_id;
26 int32 render_view_id; 27 int32 render_view_id;
27 gfx::PluginWindowHandle window; 28 gfx::PluginWindowHandle window;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 82
82 template <> 83 template <>
83 struct ParamTraits<DxDiagNode> { 84 struct ParamTraits<DxDiagNode> {
84 typedef DxDiagNode param_type; 85 typedef DxDiagNode param_type;
85 static void Write(Message* m, const param_type& p); 86 static void Write(Message* m, const param_type& p);
86 static bool Read(const Message* m, void** iter, param_type* p); 87 static bool Read(const Message* m, void** iter, param_type* p);
87 static void Log(const param_type& p, std::string* l); 88 static void Log(const param_type& p, std::string* l);
88 }; 89 };
89 90
90 template <> 91 template <>
91 struct ParamTraits<gpu::CommandBuffer::State> {
92 typedef gpu::CommandBuffer::State param_type;
93 static void Write(Message* m, const param_type& p);
94 static bool Read(const Message* m, void** iter, param_type* p);
95 static void Log(const param_type& p, std::string* l);
96 };
97
98 template <>
99 struct ParamTraits<GPUCreateCommandBufferConfig> { 92 struct ParamTraits<GPUCreateCommandBufferConfig> {
100 typedef GPUCreateCommandBufferConfig param_type; 93 typedef GPUCreateCommandBufferConfig param_type;
101 static void Write(Message* m, const param_type& p); 94 static void Write(Message* m, const param_type& p);
102 static bool Read(const Message* m, void** iter, param_type* p); 95 static bool Read(const Message* m, void** iter, param_type* p);
103 static void Log(const param_type& p, std::string* l); 96 static void Log(const param_type& p, std::string* l);
104 }; 97 };
105 98
106 } // namespace IPC 99 } // namespace IPC
107 100
108 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_ 101 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « chrome/common/gpu_messages.cc ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698