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

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

Issue 5317007: Add flow control between renderer and GPU processes, and, on Mac OS X,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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
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"
(...skipping 13 matching lines...) Expand all
24 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params { 24 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params {
25 int32 renderer_id; 25 int32 renderer_id;
26 int32 render_view_id; 26 int32 render_view_id;
27 gfx::PluginWindowHandle window; 27 gfx::PluginWindowHandle window;
28 int32 width; 28 int32 width;
29 int32 height; 29 int32 height;
30 uint64 identifier; 30 uint64 identifier;
31 31
32 GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params(); 32 GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params();
33 }; 33 };
34
35 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params {
36 int32 renderer_id;
37 int32 render_view_id;
38 gfx::PluginWindowHandle window;
39 uint64 surface_id;
40 int32 route_id;
41 uint64 swap_buffers_count;
42
43 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params();
44 };
34 #endif 45 #endif
35 46
36 namespace IPC { 47 namespace IPC {
37 #if defined(OS_MACOSX) 48 #if defined(OS_MACOSX)
38 template <> 49 template <>
39 struct ParamTraits<GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params> { 50 struct ParamTraits<GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params> {
40 typedef GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params param_type; 51 typedef GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params param_type;
41 static void Write(Message* m, const param_type& p); 52 static void Write(Message* m, const param_type& p);
42 static bool Read(const Message* m, void** iter, param_type* p); 53 static bool Read(const Message* m, void** iter, param_type* p);
43 static void Log(const param_type& p, std::string* l); 54 static void Log(const param_type& p, std::string* l);
44 }; 55 };
56
57 template <>
58 struct ParamTraits<GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params> {
59 typedef GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params param_type;
60 static void Write(Message* m, const param_type& p);
61 static bool Read(const Message* m, void** iter, param_type* p);
62 static void Log(const param_type& p, std::string* l);
63 };
45 #endif 64 #endif
46 65
47 template <> 66 template <>
48 struct ParamTraits<GPUInfo> { 67 struct ParamTraits<GPUInfo> {
49 typedef GPUInfo param_type; 68 typedef GPUInfo param_type;
50 static void Write(Message* m, const param_type& p); 69 static void Write(Message* m, const param_type& p);
51 static bool Read(const Message* m, void** iter, param_type* p); 70 static bool Read(const Message* m, void** iter, param_type* p);
52 static void Log(const param_type& p, std::string* l); 71 static void Log(const param_type& p, std::string* l);
53 }; 72 };
54 73
(...skipping 17 matching lines...) Expand all
72 struct ParamTraits<GPUCreateCommandBufferConfig> { 91 struct ParamTraits<GPUCreateCommandBufferConfig> {
73 typedef GPUCreateCommandBufferConfig param_type; 92 typedef GPUCreateCommandBufferConfig param_type;
74 static void Write(Message* m, const param_type& p); 93 static void Write(Message* m, const param_type& p);
75 static bool Read(const Message* m, void** iter, param_type* p); 94 static bool Read(const Message* m, void** iter, param_type* p);
76 static void Log(const param_type& p, std::string* l); 95 static void Log(const param_type& p, std::string* l);
77 }; 96 };
78 97
79 } // namespace IPC 98 } // namespace IPC
80 99
81 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_ 100 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698