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

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

Issue 9567028: Make echo message per-command-buffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 gfx::Size, /* size */ 291 gfx::Size, /* size */
292 GPUCreateCommandBufferConfig, /* init_params */ 292 GPUCreateCommandBufferConfig, /* init_params */
293 int32 /* route_id */) 293 int32 /* route_id */)
294 294
295 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its 295 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its
296 // destructor, so that the stub deletes the actual CommandBufferService 296 // destructor, so that the stub deletes the actual CommandBufferService
297 // object that it's hosting. 297 // object that it's hosting.
298 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer, 298 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer,
299 int32 /* instance_id */) 299 int32 /* instance_id */)
300 300
301 // Request that the GPU process reply with the given message.
302 IPC_MESSAGE_CONTROL1(GpuChannelMsg_Echo,
303 IPC::Message /* reply */)
304
305 // Asks the GPU process whether the creation or destruction of a 301 // Asks the GPU process whether the creation or destruction of a
306 // command buffer on the given GPU (integrated or discrete) will cause 302 // command buffer on the given GPU (integrated or discrete) will cause
307 // the system to switch which GPU it is using. All contexts that share 303 // the system to switch which GPU it is using. All contexts that share
308 // resources need to be created on the same GPU. 304 // resources need to be created on the same GPU.
309 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_WillGpuSwitchOccur, 305 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_WillGpuSwitchOccur,
310 bool /* is_creating_context */, 306 bool /* is_creating_context */,
311 gfx::GpuPreference /* preference */, 307 gfx::GpuPreference /* preference */,
312 bool /* will_cause_switch */) 308 bool /* will_cause_switch */)
313 309
314 // Forcibly closes the channel on the GPU process side, in order to 310 // Forcibly closes the channel on the GPU process side, in order to
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // browser. This message is currently used only on 10.6 and later. 414 // browser. This message is currently used only on 10.6 and later.
419 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetWindowSize, 415 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetWindowSize,
420 gfx::Size /* size */) 416 gfx::Size /* size */)
421 #endif 417 #endif
422 418
423 // Tells the proxy that there was an error and the command buffer had to be 419 // Tells the proxy that there was an error and the command buffer had to be
424 // destroyed for some reason. 420 // destroyed for some reason.
425 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, 421 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed,
426 gpu::error::ContextLostReason /* reason */) 422 gpu::error::ContextLostReason /* reason */)
427 423
424 // Request that the GPU process reply with the given message. Reply may be
425 // delayed.
426 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Echo,
427 IPC::Message /* reply */)
428
428 // Response to a GpuChannelMsg_Echo message. 429 // Response to a GpuChannelMsg_Echo message.
429 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_EchoAck) 430 IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_EchoAck)
430 431
431 // Send to stub on surface visibility change. 432 // Send to stub on surface visibility change.
432 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) 433 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */)
433 434
434 // Sent to proxy when the gpu memory manager changes its memory allocation. 435 // Sent to proxy when the gpu memory manager changes its memory allocation.
435 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation, 436 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation,
436 GpuMemoryAllocation /* allocation */) 437 GpuMemoryAllocation /* allocation */)
437 438
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 494
494 // Confirm decoder has been flushed. 495 // Confirm decoder has been flushed.
495 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 496 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
496 497
497 // Confirm decoder has been reset. 498 // Confirm decoder has been reset.
498 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 499 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
499 500
500 // Video decoder has encountered an error. 501 // Video decoder has encountered an error.
501 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 502 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
502 uint32) /* Error ID */ 503 uint32) /* Error ID */
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698