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

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: . Created 8 years, 6 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 51 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
52 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 52 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
53 IPC_STRUCT_MEMBER(int32, surface_id) 53 IPC_STRUCT_MEMBER(int32, surface_id)
54 IPC_STRUCT_MEMBER(uint64, surface_handle) 54 IPC_STRUCT_MEMBER(uint64, surface_handle)
55 IPC_STRUCT_MEMBER(int32, route_id) 55 IPC_STRUCT_MEMBER(int32, route_id)
56 #if defined(OS_WIN) 56 #if defined(OS_WIN)
57 IPC_STRUCT_MEMBER(gfx::Size, size) 57 IPC_STRUCT_MEMBER(gfx::Size, size)
58 #elif defined(OS_MACOSX) 58 #elif defined(OS_MACOSX)
59 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 59 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
60 #endif 60 #endif
61 #if defined(USE_AURA)
62 IPC_STRUCT_MEMBER(uint32, protection_state_id)
63 IPC_STRUCT_MEMBER(bool, require_ack)
64 #endif
61 IPC_STRUCT_END() 65 IPC_STRUCT_END()
62 #undef IPC_MESSAGE_EXPORT 66 #undef IPC_MESSAGE_EXPORT
63 #define IPC_MESSAGE_EXPORT 67 #define IPC_MESSAGE_EXPORT
64 68
65 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) 69 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params)
66 IPC_STRUCT_MEMBER(int32, surface_id) 70 IPC_STRUCT_MEMBER(int32, surface_id)
67 IPC_STRUCT_MEMBER(uint64, surface_handle) 71 IPC_STRUCT_MEMBER(uint64, surface_handle)
68 IPC_STRUCT_MEMBER(int32, route_id) 72 IPC_STRUCT_MEMBER(int32, route_id)
69 IPC_STRUCT_MEMBER(int, x) 73 IPC_STRUCT_MEMBER(int, x)
70 IPC_STRUCT_MEMBER(int, y) 74 IPC_STRUCT_MEMBER(int, y)
71 IPC_STRUCT_MEMBER(int, width) 75 IPC_STRUCT_MEMBER(int, width)
72 IPC_STRUCT_MEMBER(int, height) 76 IPC_STRUCT_MEMBER(int, height)
73 #if defined(OS_MACOSX) 77 #if defined(OS_MACOSX)
74 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 78 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
75 #endif 79 #endif
80 #if defined(USE_AURA)
81 IPC_STRUCT_MEMBER(uint32, protection_state_id)
82 #endif
76 IPC_STRUCT_END() 83 IPC_STRUCT_END()
77 84
78 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) 85 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params)
79 IPC_STRUCT_MEMBER(int32, surface_id) 86 IPC_STRUCT_MEMBER(int32, surface_id)
80 IPC_STRUCT_MEMBER(uint64, identifier) 87 IPC_STRUCT_MEMBER(uint64, identifier)
81 IPC_STRUCT_MEMBER(int32, route_id) 88 IPC_STRUCT_MEMBER(int32, route_id)
82 #if defined(OS_MACOSX) 89 #if defined(OS_MACOSX)
83 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 90 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
84 #endif 91 #endif
85 IPC_STRUCT_END() 92 IPC_STRUCT_END()
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 200
194 // Tells the GPU process that the browser process has finished resizing the 201 // Tells the GPU process that the browser process has finished resizing the
195 // view. 202 // view.
196 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) 203 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK)
197 204
198 // Tells the GPU process that it's safe to start rendering to the surface. 205 // Tells the GPU process that it's safe to start rendering to the surface.
199 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK, 206 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK,
200 uint64 /* surface_handle */, 207 uint64 /* surface_handle */,
201 TransportDIB::Handle /* shared memory buffer */) 208 TransportDIB::Handle /* shared memory buffer */)
202 209
210 // Tells the GPU process if it's worth suggesting release of the front surface.
211 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected,
212 bool /* is_protected */,
213 uint32 /* protection_state_id */)
214
203 // Tells the GPU process that the browser process handled the swap 215 // Tells the GPU process that the browser process handled the swap
204 // buffers request. 216 // buffers request.
205 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) 217 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK)
206 218
207 // Tells the GPU process that the browser process handled the 219 // Tells the GPU process that the browser process handled the
208 // PostSubBuffer command. 220 // PostSubBuffer command.
209 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_PostSubBufferACK) 221 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_PostSubBufferACK)
210 222
211 // Tells the GPU process to remove all contexts. 223 // Tells the GPU process to remove all contexts.
212 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) 224 IPC_MESSAGE_CONTROL0(GpuMsg_Clean)
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 533
522 // Confirm decoder has been flushed. 534 // Confirm decoder has been flushed.
523 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 535 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
524 536
525 // Confirm decoder has been reset. 537 // Confirm decoder has been reset.
526 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 538 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
527 539
528 // Video decoder has encountered an error. 540 // Video decoder has encountered an error.
529 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 541 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
530 uint32) /* Error ID */ 542 uint32) /* Error ID */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698