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

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

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improved commented out sample mojo code Created 5 years, 2 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
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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 GPUCreateCommandBufferConfig, /* init_params */ 473 GPUCreateCommandBufferConfig, /* init_params */
474 int32, /* route_id */ 474 int32, /* route_id */
475 bool /* succeeded */) 475 bool /* succeeded */)
476 476
477 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its 477 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its
478 // destructor, so that the stub deletes the actual CommandBufferService 478 // destructor, so that the stub deletes the actual CommandBufferService
479 // object that it's hosting. 479 // object that it's hosting.
480 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer, 480 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer,
481 int32 /* instance_id */) 481 int32 /* instance_id */)
482 482
483 // Simple NOP message which can be used as fence to ensure all previous sent
484 // messages have been received.
485 IPC_SYNC_MESSAGE_CONTROL0_0(GpuChannelMsg_Nop)
486
483 #if defined(OS_ANDROID) 487 #if defined(OS_ANDROID)
484 //------------------------------------------------------------------------------ 488 //------------------------------------------------------------------------------
485 // Stream Texture Messages 489 // Stream Texture Messages
486 // Tells the GPU process create and send the java surface texture object to 490 // Tells the GPU process create and send the java surface texture object to
487 // the renderer process through the binder thread. 491 // the renderer process through the binder thread.
488 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer, 492 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer,
489 int32, /* primary_id */ 493 int32, /* primary_id */
490 int32 /* secondary_id */) 494 int32 /* secondary_id */)
491 495
492 // Tells the GPU process to set the size of StreamTexture from the given 496 // Tells the GPU process to set the size of StreamTexture from the given
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 800 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
797 801
798 //------------------------------------------------------------------------------ 802 //------------------------------------------------------------------------------
799 // Accelerated JPEG Decoder Host Messages 803 // Accelerated JPEG Decoder Host Messages
800 // These messages are sent from the GPU process to Browser process. 804 // These messages are sent from the GPU process to Browser process.
801 // 805 //
802 // Report decode status. 806 // Report decode status.
803 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 807 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
804 int32, /* bitstream_buffer_id */ 808 int32, /* bitstream_buffer_id */
805 media::JpegDecodeAccelerator::Error /* error */) 809 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698