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

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

Issue 8917027: Add IPC to allow gpu process to send message for console back to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mock fix Created 9 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) 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) 75 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params)
76 IPC_STRUCT_MEMBER(int32, renderer_id) 76 IPC_STRUCT_MEMBER(int32, renderer_id)
77 IPC_STRUCT_MEMBER(int32, render_view_id) 77 IPC_STRUCT_MEMBER(int32, render_view_id)
78 IPC_STRUCT_MEMBER(uint64, identifier) 78 IPC_STRUCT_MEMBER(uint64, identifier)
79 IPC_STRUCT_MEMBER(int32, route_id) 79 IPC_STRUCT_MEMBER(int32, route_id)
80 #if defined(OS_MACOSX) 80 #if defined(OS_MACOSX)
81 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) 81 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window)
82 #endif 82 #endif
83 IPC_STRUCT_END() 83 IPC_STRUCT_END()
84 84
85 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage)
86 IPC_STRUCT_MEMBER(int32, id)
87 IPC_STRUCT_MEMBER(std::string, message)
88 IPC_STRUCT_END()
89
85 IPC_STRUCT_TRAITS_BEGIN(content::DxDiagNode) 90 IPC_STRUCT_TRAITS_BEGIN(content::DxDiagNode)
86 IPC_STRUCT_TRAITS_MEMBER(values) 91 IPC_STRUCT_TRAITS_MEMBER(values)
87 IPC_STRUCT_TRAITS_MEMBER(children) 92 IPC_STRUCT_TRAITS_MEMBER(children)
88 IPC_STRUCT_TRAITS_END() 93 IPC_STRUCT_TRAITS_END()
89 94
90 IPC_STRUCT_TRAITS_BEGIN(content::GPUInfo) 95 IPC_STRUCT_TRAITS_BEGIN(content::GPUInfo)
91 IPC_STRUCT_TRAITS_MEMBER(finalized) 96 IPC_STRUCT_TRAITS_MEMBER(finalized)
92 IPC_STRUCT_TRAITS_MEMBER(initialization_time) 97 IPC_STRUCT_TRAITS_MEMBER(initialization_time)
93 IPC_STRUCT_TRAITS_MEMBER(vendor_id) 98 IPC_STRUCT_TRAITS_MEMBER(vendor_id)
94 IPC_STRUCT_TRAITS_MEMBER(device_id) 99 IPC_STRUCT_TRAITS_MEMBER(device_id)
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // again to process any commands issued subsequent to unscheduling. The GPU 350 // again to process any commands issued subsequent to unscheduling. The GPU
346 // process actually sends it (deferred) to itself. 351 // process actually sends it (deferred) to itself.
347 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled) 352 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled)
348 353
349 // Return the current state of the command buffer following a request via 354 // Return the current state of the command buffer following a request via
350 // an AsyncGetState or AsyncFlush message. (This message is sent from the 355 // an AsyncGetState or AsyncFlush message. (This message is sent from the
351 // GPU process to the renderer process.) 356 // GPU process to the renderer process.)
352 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState, 357 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState,
353 gpu::CommandBuffer::State /* state */) 358 gpu::CommandBuffer::State /* state */)
354 359
360 // Sent by the GPU process to display messages in the console.
361 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg,
362 GPUCommandBufferConsoleMessage /* msg */)
363
355 // Create a shared memory transfer buffer. Returns an id that can be used to 364 // Create a shared memory transfer buffer. Returns an id that can be used to
356 // identify the transfer buffer from a comment. 365 // identify the transfer buffer from a comment.
357 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateTransferBuffer, 366 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateTransferBuffer,
358 int32 /* size */, 367 int32 /* size */,
359 int32 /* id_request (-1 means any) */, 368 int32 /* id_request (-1 means any) */,
360 int32 /* id */) 369 int32 /* id */)
361 370
362 // Register an existing shared memory transfer buffer. Returns an id that can be 371 // Register an existing shared memory transfer buffer. Returns an id that can be
363 // used to identify the transfer buffer from a command buffer. 372 // used to identify the transfer buffer from a command buffer.
364 IPC_SYNC_MESSAGE_ROUTED3_1(GpuCommandBufferMsg_RegisterTransferBuffer, 373 IPC_SYNC_MESSAGE_ROUTED3_1(GpuCommandBufferMsg_RegisterTransferBuffer,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 519
511 // Confirm decoder has been reset. 520 // Confirm decoder has been reset.
512 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 521 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
513 522
514 // Decoder has faced end of stream marker in the stream. 523 // Decoder has faced end of stream marker in the stream.
515 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) 524 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream)
516 525
517 // Video decoder has encountered an error. 526 // Video decoder has encountered an error.
518 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 527 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
519 uint32) /* Error ID */ 528 uint32) /* Error ID */
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/renderer/gpu/command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698