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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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 15 matching lines...) Expand all
26 #include "gpu/ipc/gpu_command_buffer_traits.h" 26 #include "gpu/ipc/gpu_command_buffer_traits.h"
27 #include "ipc/ipc_channel_handle.h" 27 #include "ipc/ipc_channel_handle.h"
28 #include "ipc/ipc_message_macros.h" 28 #include "ipc/ipc_message_macros.h"
29 #include "media/base/video_types.h" 29 #include "media/base/video_types.h"
30 #include "media/video/jpeg_decode_accelerator.h" 30 #include "media/video/jpeg_decode_accelerator.h"
31 #include "media/video/video_decode_accelerator.h" 31 #include "media/video/video_decode_accelerator.h"
32 #include "media/video/video_encode_accelerator.h" 32 #include "media/video/video_encode_accelerator.h"
33 #include "ui/events/latency_info.h" 33 #include "ui/events/latency_info.h"
34 #include "ui/gfx/geometry/size.h" 34 #include "ui/gfx/geometry/size.h"
35 #include "ui/gfx/gpu_memory_buffer.h" 35 #include "ui/gfx/gpu_memory_buffer.h"
36 #include "ui/gfx/ipc/gfx_param_traits.h"
36 #include "ui/gfx/native_widget_types.h" 37 #include "ui/gfx/native_widget_types.h"
37 #include "ui/gfx/swap_result.h" 38 #include "ui/gfx/swap_result.h"
38 #include "ui/gl/gpu_preference.h" 39 #include "ui/gl/gpu_preference.h"
39 40
40 #if defined(OS_ANDROID) 41 #if defined(OS_ANDROID)
41 #include "content/common/android/surface_texture_peer.h" 42 #include "content/common/android/surface_texture_peer.h"
42 #endif 43 #endif
43 44
44 #undef IPC_MESSAGE_EXPORT 45 #undef IPC_MESSAGE_EXPORT
45 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 46 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) 78 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig)
78 IPC_STRUCT_MEMBER(int32, share_group_id) 79 IPC_STRUCT_MEMBER(int32, share_group_id)
79 IPC_STRUCT_MEMBER(std::vector<int>, attribs) 80 IPC_STRUCT_MEMBER(std::vector<int>, attribs)
80 IPC_STRUCT_MEMBER(GURL, active_url) 81 IPC_STRUCT_MEMBER(GURL, active_url)
81 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) 82 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference)
82 IPC_STRUCT_END() 83 IPC_STRUCT_END()
83 84
84 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) 85 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params)
85 IPC_STRUCT_MEMBER(int32, id) 86 IPC_STRUCT_MEMBER(int32, id)
86 IPC_STRUCT_MEMBER(gfx::Size, size) 87 IPC_STRUCT_MEMBER(gfx::Size, size)
87 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Format, format) 88 IPC_STRUCT_MEMBER(gfx::BufferFormat, format)
88 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Usage, usage) 89 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage)
89 IPC_STRUCT_MEMBER(int32, client_id) 90 IPC_STRUCT_MEMBER(int32, client_id)
90 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, surface_handle) 91 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, surface_handle)
91 IPC_STRUCT_END() 92 IPC_STRUCT_END()
92 93
93 #if defined(OS_MACOSX) 94 #if defined(OS_MACOSX)
94 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 95 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
95 IPC_STRUCT_MEMBER(int32, surface_id) 96 IPC_STRUCT_MEMBER(int32, surface_id)
96 IPC_STRUCT_MEMBER(uint64, surface_handle) 97 IPC_STRUCT_MEMBER(uint64, surface_handle)
97 IPC_STRUCT_MEMBER(int32, route_id) 98 IPC_STRUCT_MEMBER(int32, route_id)
98 IPC_STRUCT_MEMBER(gfx::Size, size) 99 IPC_STRUCT_MEMBER(gfx::Size, size)
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, 640 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery,
640 uint32 /* query */, 641 uint32 /* query */,
641 uint32 /* signal_id */) 642 uint32 /* signal_id */)
642 643
643 // Create an image from an existing gpu memory buffer. The id that can be 644 // Create an image from an existing gpu memory buffer. The id that can be
644 // used to identify the image from a command buffer. 645 // used to identify the image from a command buffer.
645 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_CreateImage, 646 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_CreateImage,
646 int32 /* id */, 647 int32 /* id */,
647 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */, 648 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */,
648 gfx::Size /* size */, 649 gfx::Size /* size */,
649 gfx::GpuMemoryBuffer::Format /* format */, 650 gfx::BufferFormat /* format */,
650 uint32 /* internalformat */) 651 uint32 /* internalformat */)
651 652
652 // Destroy a previously created image. 653 // Destroy a previously created image.
653 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, 654 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage,
654 int32 /* id */) 655 int32 /* id */)
655 656
656 // Attaches an external image stream to the client texture. 657 // Attaches an external image stream to the client texture.
657 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 658 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
658 uint32, /* client_texture_id */ 659 uint32, /* client_texture_id */
659 int32, /* stream_id */ 660 int32, /* stream_id */
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 796 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
796 797
797 //------------------------------------------------------------------------------ 798 //------------------------------------------------------------------------------
798 // Accelerated JPEG Decoder Host Messages 799 // Accelerated JPEG Decoder Host Messages
799 // These messages are sent from the GPU process to Browser process. 800 // These messages are sent from the GPU process to Browser process.
800 // 801 //
801 // Report decode status. 802 // Report decode status.
802 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 803 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
803 int32, /* bitstream_buffer_id */ 804 int32, /* bitstream_buffer_id */
804 media::JpegDecodeAccelerator::Error /* error */) 805 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc ('k') | content/common/gpu/media/vaapi_drm_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698