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

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

Issue 1809183002: gpu_messages.h => gpu/ipc/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make win_clang_x64_dbg happy by making command_buffer_traits an alias to gpu component on compnet b… Created 4 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
« no previous file with comments | « gpu/ipc/common/gpu_message_generator.cc ('k') | gpu/ipc/common/gpu_param_traits.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) 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/shared_memory.h" 13 #include "base/memory/shared_memory.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "content/common/content_export.h"
16 #include "content/common/gpu/gpu_memory_uma_stats.h"
17 #include "content/common/gpu/gpu_param_traits.h"
18 #include "content/common/gpu/gpu_process_launch_causes.h"
19 #include "gpu/command_buffer/common/capabilities.h" 15 #include "gpu/command_buffer/common/capabilities.h"
20 #include "gpu/command_buffer/common/command_buffer.h" 16 #include "gpu/command_buffer/common/command_buffer.h"
21 #include "gpu/command_buffer/common/constants.h" 17 #include "gpu/command_buffer/common/constants.h"
22 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 18 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
23 #include "gpu/command_buffer/common/mailbox.h" 19 #include "gpu/command_buffer/common/mailbox.h"
24 #include "gpu/command_buffer/common/sync_token.h" 20 #include "gpu/command_buffer/common/sync_token.h"
25 #include "gpu/command_buffer/common/value_state.h" 21 #include "gpu/command_buffer/common/value_state.h"
26 #include "gpu/config/gpu_info.h" 22 #include "gpu/config/gpu_info.h"
23 #include "gpu/gpu_export.h"
27 #include "gpu/ipc/common/gpu_command_buffer_traits.h" 24 #include "gpu/ipc/common/gpu_command_buffer_traits.h"
25 #include "gpu/ipc/common/gpu_param_traits.h"
28 #include "gpu/ipc/common/surface_handle.h" 26 #include "gpu/ipc/common/surface_handle.h"
29 #include "ipc/ipc_channel_handle.h" 27 #include "ipc/ipc_channel_handle.h"
30 #include "ipc/ipc_message_macros.h" 28 #include "ipc/ipc_message_macros.h"
31 #include "ui/events/ipc/latency_info_param_traits.h" 29 #include "ui/events/ipc/latency_info_param_traits.h"
32 #include "ui/events/latency_info.h" 30 #include "ui/events/latency_info.h"
33 #include "ui/gfx/geometry/size.h" 31 #include "ui/gfx/geometry/size.h"
34 #include "ui/gfx/gpu_memory_buffer.h" 32 #include "ui/gfx/gpu_memory_buffer.h"
35 #include "ui/gfx/ipc/gfx_param_traits.h" 33 #include "ui/gfx/ipc/gfx_param_traits.h"
36 #include "ui/gfx/native_widget_types.h" 34 #include "ui/gfx/native_widget_types.h"
37 #include "ui/gfx/swap_result.h" 35 #include "ui/gfx/swap_result.h"
38 #include "url/ipc/url_param_traits.h" 36 #include "url/ipc/url_param_traits.h"
39 37
40 #if defined(OS_ANDROID) 38 #if defined(OS_ANDROID)
41 #include "gpu/ipc/common/android/surface_texture_peer.h" 39 #include "gpu/ipc/common/android/surface_texture_peer.h"
42 #elif defined(OS_MACOSX) 40 #elif defined(OS_MACOSX)
43 #include "ui/base/cocoa/remote_layer_api.h" 41 #include "ui/base/cocoa/remote_layer_api.h"
44 #include "ui/gfx/mac/io_surface.h" 42 #include "ui/gfx/mac/io_surface.h"
45 #endif 43 #endif
46 44
47 #undef IPC_MESSAGE_EXPORT 45 #undef IPC_MESSAGE_EXPORT
48 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 46 #define IPC_MESSAGE_EXPORT GPU_EXPORT
49 47
50 #define IPC_MESSAGE_START GpuChannelMsgStart 48 #define IPC_MESSAGE_START GpuChannelMsgStart
51 49
52 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) 50 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage)
53 IPC_STRUCT_MEMBER(int32_t, id) 51 IPC_STRUCT_MEMBER(int32_t, id)
54 IPC_STRUCT_MEMBER(std::string, message) 52 IPC_STRUCT_MEMBER(std::string, message)
55 IPC_STRUCT_END() 53 IPC_STRUCT_END()
56 54
57 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) 55 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig)
58 IPC_STRUCT_MEMBER(int32_t, share_group_id) 56 IPC_STRUCT_MEMBER(int32_t, share_group_id)
59 IPC_STRUCT_MEMBER(int32_t, stream_id) 57 IPC_STRUCT_MEMBER(int32_t, stream_id)
60 IPC_STRUCT_MEMBER(content::GpuStreamPriority, stream_priority) 58 IPC_STRUCT_MEMBER(gpu::GpuStreamPriority, stream_priority)
61 IPC_STRUCT_MEMBER(std::vector<int>, attribs) 59 IPC_STRUCT_MEMBER(std::vector<int>, attribs)
62 IPC_STRUCT_MEMBER(GURL, active_url) 60 IPC_STRUCT_MEMBER(GURL, active_url)
63 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) 61 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference)
64 IPC_STRUCT_END() 62 IPC_STRUCT_END()
65 63
66 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) 64 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params)
67 IPC_STRUCT_MEMBER(int32_t, id) 65 IPC_STRUCT_MEMBER(int32_t, id)
68 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer) 66 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer)
69 IPC_STRUCT_MEMBER(gfx::Size, size) 67 IPC_STRUCT_MEMBER(gfx::Size, size)
70 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) 68 IPC_STRUCT_MEMBER(gfx::BufferFormat, format)
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 //------------------------------------------------------------------------------ 121 //------------------------------------------------------------------------------
124 // Stream Texture Messages 122 // Stream Texture Messages
125 // Tells the GPU process create and send the java surface texture object to 123 // Tells the GPU process create and send the java surface texture object to
126 // the renderer process through the binder thread. 124 // the renderer process through the binder thread.
127 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer, 125 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer,
128 int32_t, /* primary_id */ 126 int32_t, /* primary_id */
129 int32_t /* secondary_id */) 127 int32_t /* secondary_id */)
130 128
131 // Tells the GPU process to set the size of StreamTexture from the given 129 // Tells the GPU process to set the size of StreamTexture from the given
132 // stream Id. 130 // stream Id.
133 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, 131 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */)
134 gfx::Size /* size */)
135 132
136 // Tells the service-side instance to start sending frame available 133 // Tells the service-side instance to start sending frame available
137 // notifications. 134 // notifications.
138 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening) 135 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_StartListening)
139 136
140 // Inform the renderer that a new frame is available. 137 // Inform the renderer that a new frame is available.
141 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable) 138 IPC_MESSAGE_ROUTED0(GpuStreamTextureMsg_FrameAvailable)
142 139
143 // Inform the renderer process that the transform matrix has changed. 140 // Inform the renderer process that the transform matrix has changed.
144 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged, 141 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_MatrixChanged,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 GpuCommandBufferMsg_CreateImage_Params /* params */) 234 GpuCommandBufferMsg_CreateImage_Params /* params */)
238 235
239 // Destroy a previously created image. 236 // Destroy a previously created image.
240 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) 237 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */)
241 238
242 // Attaches an external image stream to the client texture. 239 // Attaches an external image stream to the client texture.
243 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 240 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
244 uint32_t, /* client_texture_id */ 241 uint32_t, /* client_texture_id */
245 int32_t, /* stream_id */ 242 int32_t, /* stream_id */
246 bool /* succeeded */) 243 bool /* succeeded */)
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_message_generator.cc ('k') | gpu/ipc/common/gpu_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698