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

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

Powered by Google App Engine
This is Rietveld 408576698