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

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

Issue 6992010: Added proxy / stub pair for GPU surfaces. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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') | content/common/gpu/gpu_surface_stub.h » ('j') | 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) 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 #include <vector> 5 #include <vector>
6 #include <string> 6 #include <string>
7 7
8 8
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/common_param_traits.h" 10 #include "content/common/common_param_traits.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 uint32, /* parent_texture_id */ 300 uint32, /* parent_texture_id */
301 int32 /* route_id */) 301 int32 /* route_id */)
302 302
303 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its 303 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its
304 // destructor, so that the stub deletes the actual CommandBufferService 304 // destructor, so that the stub deletes the actual CommandBufferService
305 // object that it's hosting. 305 // object that it's hosting.
306 // TODO(apatrick): Implement this. 306 // TODO(apatrick): Implement this.
307 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer, 307 IPC_SYNC_MESSAGE_CONTROL1_0(GpuChannelMsg_DestroyCommandBuffer,
308 int32 /* instance_id */) 308 int32 /* instance_id */)
309 309
310 // Create a surface for offscreen rendering.
311 IPC_SYNC_MESSAGE_CONTROL1_1(GpuChannelMsg_CreateOffscreenSurface,
312 gfx::Size, /* size */
313 int /* route_id */)
314
315 // Destroy a surface by routing id.
316 IPC_MESSAGE_CONTROL1(GpuChannelMsg_DestroySurface,
317 int /* route_id */);
318
310 // Create hardware video decoder && associate it with the output |decoder_id|; 319 // Create hardware video decoder && associate it with the output |decoder_id|;
311 // We need this to be control message because we had to map the GpuChannel and 320 // We need this to be control message because we had to map the GpuChannel and
312 // |decoder_id|. 321 // |decoder_id|.
313 IPC_MESSAGE_CONTROL2(GpuChannelMsg_CreateVideoDecoder, 322 IPC_MESSAGE_CONTROL2(GpuChannelMsg_CreateVideoDecoder,
314 int32, /* decoder_id */ 323 int32, /* decoder_id */
315 std::vector<uint32>) /* configs */ 324 std::vector<uint32>) /* configs */
316 325
317 // Release all resource of the hardware video decoder which was assocaited 326 // Release all resource of the hardware video decoder which was assocaited
318 // with the input |decoder_id|. 327 // with the input |decoder_id|.
319 // TODO(hclam): This message needs to be asynchronous. 328 // TODO(hclam): This message needs to be asynchronous.
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 623
615 // Confirm decoder has been aborted. 624 // Confirm decoder has been aborted.
616 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone) 625 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_AbortDone)
617 626
618 // Decoder has faced end of stream marker in the stream. 627 // Decoder has faced end of stream marker in the stream.
619 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream) 628 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_EndOfStream)
620 629
621 // Video decoder has encountered an error. 630 // Video decoder has encountered an error.
622 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 631 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
623 uint32) /* Error ID */ 632 uint32) /* Error ID */
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/gpu_surface_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698