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

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

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming messages. Updated the other platforms. Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) 78 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params)
79 IPC_STRUCT_MEMBER(int32, surface_id) 79 IPC_STRUCT_MEMBER(int32, surface_id)
80 IPC_STRUCT_MEMBER(uint64, identifier) 80 IPC_STRUCT_MEMBER(uint64, identifier)
81 IPC_STRUCT_MEMBER(int32, route_id) 81 IPC_STRUCT_MEMBER(int32, route_id)
82 #if defined(OS_MACOSX) 82 #if defined(OS_MACOSX)
83 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 83 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
84 #endif 84 #endif
85 IPC_STRUCT_END() 85 IPC_STRUCT_END()
86 86
87 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceSuggestDiscard_Params)
88 IPC_STRUCT_MEMBER(int32, surface_id)
89 IPC_STRUCT_MEMBER(uint64, identifier)
90 IPC_STRUCT_MEMBER(int32, route_id)
91 IPC_STRUCT_END()
92
87 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) 93 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage)
88 IPC_STRUCT_MEMBER(int32, id) 94 IPC_STRUCT_MEMBER(int32, id)
89 IPC_STRUCT_MEMBER(std::string, message) 95 IPC_STRUCT_MEMBER(std::string, message)
90 IPC_STRUCT_END() 96 IPC_STRUCT_END()
91 97
92 IPC_STRUCT_TRAITS_BEGIN(content::DxDiagNode) 98 IPC_STRUCT_TRAITS_BEGIN(content::DxDiagNode)
93 IPC_STRUCT_TRAITS_MEMBER(values) 99 IPC_STRUCT_TRAITS_MEMBER(values)
94 IPC_STRUCT_TRAITS_MEMBER(children) 100 IPC_STRUCT_TRAITS_MEMBER(children)
95 IPC_STRUCT_TRAITS_END() 101 IPC_STRUCT_TRAITS_END()
96 102
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 191
186 // Tells the GPU process that the browser process has finished resizing the 192 // Tells the GPU process that the browser process has finished resizing the
187 // view. 193 // view.
188 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) 194 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK)
189 195
190 // Tells the GPU process that it's safe to start rendering to the surface. 196 // Tells the GPU process that it's safe to start rendering to the surface.
191 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK, 197 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK,
192 uint64 /* surface_handle */, 198 uint64 /* surface_handle */,
193 TransportDIB::Handle /* shared memory buffer */) 199 TransportDIB::Handle /* shared memory buffer */)
194 200
201 // Tells the GPU process that it's safe to release the surface.
202 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_DiscardSurface,
203 uint64 /* surface_id */)
204
195 // Tells the GPU process that the browser process handled the swap 205 // Tells the GPU process that the browser process handled the swap
196 // buffers request. 206 // buffers request.
197 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) 207 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK)
198 208
199 // Tells the GPU process that the browser process handled the 209 // Tells the GPU process that the browser process handled the
200 // PostSubBuffer command. 210 // PostSubBuffer command.
201 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_PostSubBufferACK) 211 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_PostSubBufferACK)
202 212
203 // Tells the GPU process to remove all contexts. 213 // Tells the GPU process to remove all contexts.
204 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) 214 IPC_MESSAGE_CONTROL0(GpuMsg_Clean)
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // the given surface. The browser must send an ACK once this operation 290 // the given surface. The browser must send an ACK once this operation
281 // is complete. 291 // is complete.
282 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceRelease, 292 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceRelease,
283 GpuHostMsg_AcceleratedSurfaceRelease_Params) 293 GpuHostMsg_AcceleratedSurfaceRelease_Params)
284 294
285 // Tells the browser to release resources for the given surface until the next 295 // Tells the browser to release resources for the given surface until the next
286 // time swap buffers or post sub buffer is sent. 296 // time swap buffers or post sub buffer is sent.
287 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend, 297 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend,
288 int32 /* surface_id */) 298 int32 /* surface_id */)
289 299
300 // Tells the browser to release resources for the given surface until the next
301 // time swap buffers or post sub buffer is sent.
302 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuggestDiscard,
303 GpuHostMsg_AcceleratedSurfaceSuggestDiscard_Params)
304
290 //------------------------------------------------------------------------------ 305 //------------------------------------------------------------------------------
291 // GPU Channel Messages 306 // GPU Channel Messages
292 // These are messages from a renderer process to the GPU process. 307 // These are messages from a renderer process to the GPU process.
293 308
294 // Tells the GPU process to create a new command buffer that renders to an 309 // Tells the GPU process to create a new command buffer that renders to an
295 // offscreen frame buffer. 310 // offscreen frame buffer.
296 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer, 311 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer,
297 gfx::Size, /* size */ 312 gfx::Size, /* size */
298 GPUCreateCommandBufferConfig, /* init_params */ 313 GPUCreateCommandBufferConfig, /* init_params */
299 int32 /* route_id */) 314 int32 /* route_id */)
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 523
509 // Confirm decoder has been flushed. 524 // Confirm decoder has been flushed.
510 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 525 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
511 526
512 // Confirm decoder has been reset. 527 // Confirm decoder has been reset.
513 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 528 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
514 529
515 // Video decoder has encountered an error. 530 // Video decoder has encountered an error.
516 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 531 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
517 uint32) /* Error ID */ 532 uint32) /* Error ID */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698