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

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

Issue 11475017: Revert 171569 as it broke some browser_tests on win_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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) 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 28 matching lines...) Expand all
39 IPC_STRUCT_MEMBER(std::vector<int>, attribs) 39 IPC_STRUCT_MEMBER(std::vector<int>, attribs)
40 IPC_STRUCT_MEMBER(GURL, active_url) 40 IPC_STRUCT_MEMBER(GURL, active_url)
41 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) 41 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference)
42 IPC_STRUCT_END() 42 IPC_STRUCT_END()
43 43
44 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceNew_Params) 44 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceNew_Params)
45 IPC_STRUCT_MEMBER(int32, surface_id) 45 IPC_STRUCT_MEMBER(int32, surface_id)
46 IPC_STRUCT_MEMBER(int32, width) 46 IPC_STRUCT_MEMBER(int32, width)
47 IPC_STRUCT_MEMBER(int32, height) 47 IPC_STRUCT_MEMBER(int32, height)
48 IPC_STRUCT_MEMBER(uint64, surface_handle) 48 IPC_STRUCT_MEMBER(uint64, surface_handle)
49 IPC_STRUCT_MEMBER(std::string, mailbox_name)
50 IPC_STRUCT_MEMBER(int32, route_id) 49 IPC_STRUCT_MEMBER(int32, route_id)
51 #if defined(OS_MACOSX) 50 #if defined(OS_MACOSX)
52 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 51 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
53 IPC_STRUCT_MEMBER(bool, create_transport_dib) 52 IPC_STRUCT_MEMBER(bool, create_transport_dib)
54 #endif 53 #endif
55 IPC_STRUCT_END() 54 IPC_STRUCT_END()
56 55
57 #undef IPC_MESSAGE_EXPORT 56 #undef IPC_MESSAGE_EXPORT
58 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 57 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
59 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 58 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
60 IPC_STRUCT_MEMBER(int32, surface_id) 59 IPC_STRUCT_MEMBER(int32, surface_id)
61 IPC_STRUCT_MEMBER(uint64, surface_handle) 60 IPC_STRUCT_MEMBER(uint64, surface_handle)
62 IPC_STRUCT_MEMBER(int32, route_id) 61 IPC_STRUCT_MEMBER(int32, route_id)
63 IPC_STRUCT_MEMBER(gfx::Size, size) 62 IPC_STRUCT_MEMBER(gfx::Size, size)
64 #if defined(OS_MACOSX) 63 #if defined(OS_MACOSX)
65 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 64 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
66 #endif 65 #endif
66 IPC_STRUCT_MEMBER(uint32, protection_state_id)
67 IPC_STRUCT_MEMBER(bool, skip_ack)
67 IPC_STRUCT_END() 68 IPC_STRUCT_END()
68 #undef IPC_MESSAGE_EXPORT 69 #undef IPC_MESSAGE_EXPORT
69 #define IPC_MESSAGE_EXPORT 70 #define IPC_MESSAGE_EXPORT
70 71
71 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) 72 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params)
72 IPC_STRUCT_MEMBER(int32, surface_id) 73 IPC_STRUCT_MEMBER(int32, surface_id)
73 IPC_STRUCT_MEMBER(uint64, surface_handle) 74 IPC_STRUCT_MEMBER(uint64, surface_handle)
74 IPC_STRUCT_MEMBER(int32, route_id) 75 IPC_STRUCT_MEMBER(int32, route_id)
75 IPC_STRUCT_MEMBER(int, x) 76 IPC_STRUCT_MEMBER(int, x)
76 IPC_STRUCT_MEMBER(int, y) 77 IPC_STRUCT_MEMBER(int, y)
77 IPC_STRUCT_MEMBER(int, width) 78 IPC_STRUCT_MEMBER(int, width)
78 IPC_STRUCT_MEMBER(int, height) 79 IPC_STRUCT_MEMBER(int, height)
79 IPC_STRUCT_MEMBER(gfx::Size, surface_size) 80 IPC_STRUCT_MEMBER(gfx::Size, surface_size)
80 #if defined(OS_MACOSX) 81 #if defined(OS_MACOSX)
81 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 82 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
82 #endif 83 #endif
84 IPC_STRUCT_MEMBER(uint32, protection_state_id)
83 IPC_STRUCT_END() 85 IPC_STRUCT_END()
84 86
85 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) 87 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params)
86 IPC_STRUCT_MEMBER(int32, surface_id) 88 IPC_STRUCT_MEMBER(int32, surface_id)
89 IPC_STRUCT_MEMBER(uint64, identifier)
87 IPC_STRUCT_MEMBER(int32, route_id) 90 IPC_STRUCT_MEMBER(int32, route_id)
88 #if defined(OS_MACOSX) 91 #if defined(OS_MACOSX)
89 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 92 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
90 #endif 93 #endif
91 IPC_STRUCT_END() 94 IPC_STRUCT_END()
92 95
93 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) 96 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage)
94 IPC_STRUCT_MEMBER(int32, id) 97 IPC_STRUCT_MEMBER(int32, id)
95 IPC_STRUCT_MEMBER(std::string, message) 98 IPC_STRUCT_MEMBER(std::string, message)
96 IPC_STRUCT_END() 99 IPC_STRUCT_END()
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 IPC_STRUCT_TRAITS_MEMBER(bytes_nice_to_have) 190 IPC_STRUCT_TRAITS_MEMBER(bytes_nice_to_have)
188 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) 191 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated)
189 IPC_STRUCT_TRAITS_MEMBER(backbuffer_requested) 192 IPC_STRUCT_TRAITS_MEMBER(backbuffer_requested)
190 IPC_STRUCT_TRAITS_END() 193 IPC_STRUCT_TRAITS_END()
191 194
192 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) 195 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle)
193 IPC_STRUCT_TRAITS_MEMBER(handle) 196 IPC_STRUCT_TRAITS_MEMBER(handle)
194 IPC_STRUCT_TRAITS_MEMBER(transport) 197 IPC_STRUCT_TRAITS_MEMBER(transport)
195 IPC_STRUCT_TRAITS_MEMBER(parent_gpu_process_id) 198 IPC_STRUCT_TRAITS_MEMBER(parent_gpu_process_id)
196 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) 199 IPC_STRUCT_TRAITS_MEMBER(parent_client_id)
200 IPC_STRUCT_TRAITS_MEMBER(parent_context_id)
201 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[0])
202 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[1])
203 IPC_STRUCT_TRAITS_MEMBER(sync_point)
197 IPC_STRUCT_TRAITS_END() 204 IPC_STRUCT_TRAITS_END()
198 205
199 IPC_ENUM_TRAITS(content::CauseForGpuLaunch) 206 IPC_ENUM_TRAITS(content::CauseForGpuLaunch)
200 IPC_ENUM_TRAITS(gfx::GpuPreference) 207 IPC_ENUM_TRAITS(gfx::GpuPreference)
201 IPC_ENUM_TRAITS(gpu::error::ContextLostReason) 208 IPC_ENUM_TRAITS(gpu::error::ContextLostReason)
202 209
203 IPC_ENUM_TRAITS(media::VideoCodecProfile) 210 IPC_ENUM_TRAITS(media::VideoCodecProfile)
204 211
205 IPC_STRUCT_TRAITS_BEGIN(content::GpuRenderingStats) 212 IPC_STRUCT_TRAITS_BEGIN(content::GpuRenderingStats)
206 IPC_STRUCT_TRAITS_MEMBER(global_texture_upload_count) 213 IPC_STRUCT_TRAITS_MEMBER(global_texture_upload_count)
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 273
267 // Tells the GPU process' memory manager how many visible windows there are, so 274 // Tells the GPU process' memory manager how many visible windows there are, so
268 // it can partition memory amongst them. 275 // it can partition memory amongst them.
269 IPC_MESSAGE_CONTROL1(GpuMsg_SetVideoMemoryWindowCount, 276 IPC_MESSAGE_CONTROL1(GpuMsg_SetVideoMemoryWindowCount,
270 uint32 /* window_count */) 277 uint32 /* window_count */)
271 278
272 // Tells the GPU process that the browser process has finished resizing the 279 // Tells the GPU process that the browser process has finished resizing the
273 // view. 280 // view.
274 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) 281 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK)
275 282
283 // Tells the GPU process if it's worth suggesting release of the front surface.
284 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected,
285 bool /* is_protected */,
286 uint32 /* protection_state_id */)
287
276 // Tells the GPU process that the browser process has handled the swap 288 // Tells the GPU process that the browser process has handled the swap
277 // buffers or post sub-buffer request. A non-zero sync point means 289 // buffers or post sub-buffer request. A non-zero sync point means
278 // that we should wait for the sync point. The surface_handle identifies 290 // that we should wait for the sync point.
279 // that buffer that has finished presented, i.e. the buffer being returned.
280 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_BufferPresented, 291 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_BufferPresented,
281 uint64 /* surface_handle */, 292 bool /* presented */,
282 uint32 /* sync_point */) 293 uint32 /* sync_point */)
283 294
284 // Tells the GPU process to remove all contexts. 295 // Tells the GPU process to remove all contexts.
285 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) 296 IPC_MESSAGE_CONTROL0(GpuMsg_Clean)
286 297
287 // Tells the GPU process to crash. 298 // Tells the GPU process to crash.
288 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) 299 IPC_MESSAGE_CONTROL0(GpuMsg_Crash)
289 300
290 // Tells the GPU process to hang. 301 // Tells the GPU process to hang.
291 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) 302 IPC_MESSAGE_CONTROL0(GpuMsg_Hang)
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 690
680 // Confirm decoder has been flushed. 691 // Confirm decoder has been flushed.
681 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 692 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
682 693
683 // Confirm decoder has been reset. 694 // Confirm decoder has been reset.
684 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 695 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
685 696
686 // Video decoder has encountered an error. 697 // Video decoder has encountered an error.
687 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 698 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
688 uint32) /* Error ID */ 699 uint32) /* Error ID */
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698