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

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

Issue 9702081: Splitting GpuMemoryAllocation into two parts: for renderer and browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removing needless includes Created 8 years, 9 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 IPC_STRUCT_TRAITS_MEMBER(gl_renderer) 112 IPC_STRUCT_TRAITS_MEMBER(gl_renderer)
113 IPC_STRUCT_TRAITS_MEMBER(gl_extensions) 113 IPC_STRUCT_TRAITS_MEMBER(gl_extensions)
114 IPC_STRUCT_TRAITS_MEMBER(can_lose_context) 114 IPC_STRUCT_TRAITS_MEMBER(can_lose_context)
115 IPC_STRUCT_TRAITS_MEMBER(performance_stats) 115 IPC_STRUCT_TRAITS_MEMBER(performance_stats)
116 IPC_STRUCT_TRAITS_MEMBER(software_rendering) 116 IPC_STRUCT_TRAITS_MEMBER(software_rendering)
117 #if defined(OS_WIN) 117 #if defined(OS_WIN)
118 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics) 118 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics)
119 #endif 119 #endif
120 IPC_STRUCT_TRAITS_END() 120 IPC_STRUCT_TRAITS_END()
121 121
122 IPC_STRUCT_TRAITS_BEGIN(GpuMemoryAllocation) 122 IPC_STRUCT_TRAITS_BEGIN(GpuMemoryAllocationForRenderer)
123 IPC_STRUCT_TRAITS_MEMBER(gpu_resource_size_in_bytes) 123 IPC_STRUCT_TRAITS_MEMBER(gpu_resource_size_in_bytes)
124 IPC_STRUCT_TRAITS_MEMBER(has_frontbuffer) 124 IPC_STRUCT_TRAITS_MEMBER(suggest_have_backbuffer)
125 IPC_STRUCT_TRAITS_MEMBER(has_backbuffer)
126 IPC_STRUCT_TRAITS_END() 125 IPC_STRUCT_TRAITS_END()
127 126
128 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) 127 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle)
129 IPC_STRUCT_TRAITS_MEMBER(handle) 128 IPC_STRUCT_TRAITS_MEMBER(handle)
130 IPC_STRUCT_TRAITS_MEMBER(transport) 129 IPC_STRUCT_TRAITS_MEMBER(transport)
131 IPC_STRUCT_TRAITS_MEMBER(parent_gpu_process_id) 130 IPC_STRUCT_TRAITS_MEMBER(parent_gpu_process_id)
132 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) 131 IPC_STRUCT_TRAITS_MEMBER(parent_client_id)
133 IPC_STRUCT_TRAITS_MEMBER(parent_context_id) 132 IPC_STRUCT_TRAITS_MEMBER(parent_context_id)
134 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[0]) 133 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[0])
135 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[1]) 134 IPC_STRUCT_TRAITS_MEMBER(parent_texture_id[1])
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // delayed. 433 // delayed.
435 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Echo, 434 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Echo,
436 IPC::Message /* reply */) 435 IPC::Message /* reply */)
437 436
438 // Response to a GpuChannelMsg_Echo message. 437 // Response to a GpuChannelMsg_Echo message.
439 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_EchoAck) 438 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_EchoAck)
440 439
441 // Send to stub on surface visibility change. 440 // Send to stub on surface visibility change.
442 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) 441 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */)
443 442
443 // Request that the GPU process create/destroy the surface backbuffer.
444 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_CreateBackbuffer)
piman 2012/03/15 20:14:32 Doing these as commands into the command buffer (l
mmocny 2012/03/15 20:39:27 Okay, I was undecided here, and I think you are co
445 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_DestroyBackbuffer)
446
444 // Sent to proxy when the gpu memory manager changes its memory allocation. 447 // Sent to proxy when the gpu memory manager changes its memory allocation.
445 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation, 448 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation,
446 GpuMemoryAllocation /* allocation */) 449 GpuMemoryAllocationForRenderer /* allocation */)
447 450
448 //------------------------------------------------------------------------------ 451 //------------------------------------------------------------------------------
449 // Accelerated Video Decoder Messages 452 // Accelerated Video Decoder Messages
450 // These messages are sent from Renderer process to GPU process. 453 // These messages are sent from Renderer process to GPU process.
451 454
452 // Send input buffer for decoding. 455 // Send input buffer for decoding.
453 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderMsg_Decode, 456 IPC_MESSAGE_ROUTED3(AcceleratedVideoDecoderMsg_Decode,
454 base::SharedMemoryHandle, /* input_buffer_handle */ 457 base::SharedMemoryHandle, /* input_buffer_handle */
455 int32, /* bitstream_buffer_id */ 458 int32, /* bitstream_buffer_id */
456 int32) /* size */ 459 int32) /* size */
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 506
504 // Confirm decoder has been flushed. 507 // Confirm decoder has been flushed.
505 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 508 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
506 509
507 // Confirm decoder has been reset. 510 // Confirm decoder has been reset.
508 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 511 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
509 512
510 // Video decoder has encountered an error. 513 // Video decoder has encountered an error.
511 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 514 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
512 uint32) /* Error ID */ 515 uint32) /* Error ID */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698