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

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

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 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
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_x11.cc ('k') | content/content_browser.gypi » ('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) 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 gfx::GLSurfaceHandle, /* compositing_surface */ 259 gfx::GLSurfaceHandle, /* compositing_surface */
260 int32, /* surface_id */ 260 int32, /* surface_id */
261 int32, /* client_id */ 261 int32, /* client_id */
262 GPUCreateCommandBufferConfig, /* init_params */ 262 GPUCreateCommandBufferConfig, /* init_params */
263 int32 /* route_id */) 263 int32 /* route_id */)
264 264
265 // Tells the GPU process to create a new gpu memory buffer for |handle|. 265 // Tells the GPU process to create a new gpu memory buffer for |handle|.
266 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, 266 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer,
267 gfx::GpuMemoryBufferHandle, /* handle */ 267 gfx::GpuMemoryBufferHandle, /* handle */
268 gfx::Size, /* size */ 268 gfx::Size, /* size */
269 unsigned, /* internalformat */ 269 gfx::GpuMemoryBuffer::Format, /* format */
270 unsigned /* usage */) 270 gfx::GpuMemoryBuffer::Usage /* usage */)
271 271
272 // Tells the GPU process to destroy buffer. 272 // Tells the GPU process to destroy buffer.
273 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, 273 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer,
274 gfx::GpuMemoryBufferHandle, /* handle */ 274 gfx::GpuMemoryBufferHandle, /* handle */
275 int32 /* sync_point */) 275 int32 /* sync_point */)
276 276
277 // Tells the GPU process to create a context for collecting graphics card 277 // Tells the GPU process to create a context for collecting graphics card
278 // information. 278 // information.
279 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) 279 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo)
280 280
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalSyncPointAck, 584 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalSyncPointAck,
585 uint32 /* signal_id */) 585 uint32 /* signal_id */)
586 586
587 // Makes this command buffer signal when a query is reached, by sending 587 // Makes this command buffer signal when a query is reached, by sending
588 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same 588 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same
589 // signal_id. 589 // signal_id.
590 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, 590 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery,
591 uint32 /* query */, 591 uint32 /* query */,
592 uint32 /* signal_id */) 592 uint32 /* signal_id */)
593 593
594 // Register an existing gpu memory buffer. The id that can be 594 // Create an image from an existing gpu memory buffer. The id that can be
595 // used to identify the gpu memory buffer from a command buffer. 595 // used to identify the image from a command buffer.
596 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_RegisterGpuMemoryBuffer, 596 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_CreateImage,
597 int32 /* id */, 597 int32 /* id */,
598 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */, 598 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */,
599 uint32 /* width */, 599 gfx::Size /* size */,
600 uint32 /* height */, 600 gfx::GpuMemoryBuffer::Format /* format */,
601 uint32 /* internalformat */) 601 uint32 /* internalformat */)
602 602
603 // Unregister a previously registered gpu memory buffer. 603 // Destroy a previously created image.
604 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UnregisterGpuMemoryBuffer, 604 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage,
605 int32 /* id */) 605 int32 /* id */)
606 606
607 // Attaches an external image stream to the client texture. 607 // Attaches an external image stream to the client texture.
608 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 608 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
609 uint32, /* client_texture_id */ 609 uint32, /* client_texture_id */
610 int32, /* stream_id */ 610 int32, /* stream_id */
611 bool /* succeeded */) 611 bool /* succeeded */)
612 612
613 //------------------------------------------------------------------------------ 613 //------------------------------------------------------------------------------
614 // Accelerated Video Decoder Messages 614 // Accelerated Video Decoder Messages
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 int32 /* bitstream_buffer_id */, 724 int32 /* bitstream_buffer_id */,
725 uint32 /* payload_size */, 725 uint32 /* payload_size */,
726 bool /* key_frame */) 726 bool /* key_frame */)
727 727
728 // Report error condition. 728 // Report error condition.
729 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 729 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
730 media::VideoEncodeAccelerator::Error /* error */) 730 media::VideoEncodeAccelerator::Error /* error */)
731 731
732 // Send destroy request to the encoder. 732 // Send destroy request to the encoder.
733 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) 733 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_x11.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698