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

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 8513013: Plumb the partial swap though image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with a few compile fixes (tested Win, Mac, Linux, and Aura) Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <vector> 8 #include <vector>
9 #include <string> 9 #include <string>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 IPC_STRUCT_MEMBER(int32, render_view_id) 51 IPC_STRUCT_MEMBER(int32, render_view_id)
52 IPC_STRUCT_MEMBER(uint64, surface_id) 52 IPC_STRUCT_MEMBER(uint64, surface_id)
53 IPC_STRUCT_MEMBER(int32, route_id) 53 IPC_STRUCT_MEMBER(int32, route_id)
54 #if defined(OS_WIN) 54 #if defined(OS_WIN)
55 IPC_STRUCT_MEMBER(gfx::Size, size) 55 IPC_STRUCT_MEMBER(gfx::Size, size)
56 #elif defined(OS_MACOSX) 56 #elif defined(OS_MACOSX)
57 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 57 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
58 #endif 58 #endif
59 IPC_STRUCT_END() 59 IPC_STRUCT_END()
60 60
61 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params)
62 IPC_STRUCT_MEMBER(int32, renderer_id)
63 IPC_STRUCT_MEMBER(int32, render_view_id)
64 IPC_STRUCT_MEMBER(uint64, surface_id)
65 IPC_STRUCT_MEMBER(int32, route_id)
66 IPC_STRUCT_MEMBER(int, x)
67 IPC_STRUCT_MEMBER(int, y)
68 IPC_STRUCT_MEMBER(int, width)
69 IPC_STRUCT_MEMBER(int, height)
70 #if defined(OS_MACOSX)
71 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
72 #endif
73 IPC_STRUCT_END()
74
61 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) 75 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params)
62 IPC_STRUCT_MEMBER(int32, renderer_id) 76 IPC_STRUCT_MEMBER(int32, renderer_id)
63 IPC_STRUCT_MEMBER(int32, render_view_id) 77 IPC_STRUCT_MEMBER(int32, render_view_id)
64 IPC_STRUCT_MEMBER(uint64, identifier) 78 IPC_STRUCT_MEMBER(uint64, identifier)
65 IPC_STRUCT_MEMBER(int32, route_id) 79 IPC_STRUCT_MEMBER(int32, route_id)
66 #if defined(OS_MACOSX) 80 #if defined(OS_MACOSX)
67 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 81 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
68 #endif 82 #endif
69 IPC_STRUCT_END() 83 IPC_STRUCT_END()
70 84
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Tells the GPU process that the browser process has finished resizing the 158 // Tells the GPU process that the browser process has finished resizing the
145 // view. 159 // view.
146 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) 160 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK)
147 161
148 // Tells the GPU process that it's safe to start rendering to the surface. 162 // Tells the GPU process that it's safe to start rendering to the surface.
149 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK, 163 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK,
150 uint64 /* surface_id */, 164 uint64 /* surface_id */,
151 TransportDIB::Handle /* shared memory buffer */) 165 TransportDIB::Handle /* shared memory buffer */)
152 166
153 // Tells the GPU process that the browser process handled the swap 167 // Tells the GPU process that the browser process handled the swap
154 // buffers request with the given number. 168 // buffers request.
155 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) 169 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK)
156 170
171 // Tells the GPU process that the browser process handled the
172 // PostSubBuffer command.
173 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_PostSubBufferACK)
174
157 // Tells the GPU process to remove all contexts. 175 // Tells the GPU process to remove all contexts.
158 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) 176 IPC_MESSAGE_CONTROL0(GpuMsg_Clean)
159 177
160 // Tells the GPU process to crash. 178 // Tells the GPU process to crash.
161 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) 179 IPC_MESSAGE_CONTROL0(GpuMsg_Crash)
162 180
163 // Tells the GPU process to hang. 181 // Tells the GPU process to hang.
164 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) 182 IPC_MESSAGE_CONTROL0(GpuMsg_Hang)
165 183
166 //------------------------------------------------------------------------------ 184 //------------------------------------------------------------------------------
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 int32 /* route_id */, 234 int32 /* route_id */,
217 gfx::Size /* size */) 235 gfx::Size /* size */)
218 236
219 // This message is sent from the GPU process to the browser to notify about a 237 // This message is sent from the GPU process to the browser to notify about a
220 // new or resized surface in the GPU. The browser allocates any resources 238 // new or resized surface in the GPU. The browser allocates any resources
221 // needed for it on its end and replies with an ACK containing any shared 239 // needed for it on its end and replies with an ACK containing any shared
222 // resources/identifiers to be used in the GPU. 240 // resources/identifiers to be used in the GPU.
223 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceNew, 241 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceNew,
224 GpuHostMsg_AcceleratedSurfaceNew_Params) 242 GpuHostMsg_AcceleratedSurfaceNew_Params)
225 243
226 // This message notifies the browser process that the renderer 244 // Same as above with a rect of the part of the surface that changed.
227 // swapped the buffers associated with the given "window", which
228 // should cause the browser to redraw the compositor's contents.
229 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, 245 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
230 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 246 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
231 247
248 // This message notifies the browser process that the renderer
249 // swapped a portion of the buffers associated with the given "window", which
250 // should cause the browser to redraw the compositor's contents.
251 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfacePostSubBuffer,
252 GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params)
253
232 // Tells the browser to release whatever resources are associated with 254 // Tells the browser to release whatever resources are associated with
233 // the given surface. The browser must send an ACK once this operation 255 // the given surface. The browser must send an ACK once this operation
234 // is complete. 256 // is complete.
235 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceRelease, 257 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceRelease,
236 GpuHostMsg_AcceleratedSurfaceRelease_Params) 258 GpuHostMsg_AcceleratedSurfaceRelease_Params)
237 259
238 //------------------------------------------------------------------------------ 260 //------------------------------------------------------------------------------
239 // GPU Channel Messages 261 // GPU Channel Messages
240 // These are messages from a renderer process to the GPU process. 262 // These are messages from a renderer process to the GPU process.
241 263
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 508
487 // Confirm decoder has been reset. 509 // Confirm decoder has been reset.
488 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 510 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
489 511
490 // Decoder has faced end of stream marker in the stream. 512 // Decoder has faced end of stream marker in the stream.
491 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) 513 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream)
492 514
493 // Video decoder has encountered an error. 515 // Video decoder has encountered an error.
494 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 516 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
495 uint32) /* Error ID */ 517 uint32) /* Error ID */
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698