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

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

Issue 2420083004: Delete SurfaceTexturePeer (Closed)
Patch Set: Fix missed references Created 3 years, 10 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 19 matching lines...) Expand all
30 #include "ui/events/ipc/latency_info_param_traits.h" 30 #include "ui/events/ipc/latency_info_param_traits.h"
31 #include "ui/events/latency_info.h" 31 #include "ui/events/latency_info.h"
32 #include "ui/gfx/geometry/size.h" 32 #include "ui/gfx/geometry/size.h"
33 #include "ui/gfx/gpu_memory_buffer.h" 33 #include "ui/gfx/gpu_memory_buffer.h"
34 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" 34 #include "ui/gfx/ipc/geometry/gfx_param_traits.h"
35 #include "ui/gfx/ipc/gfx_param_traits.h" 35 #include "ui/gfx/ipc/gfx_param_traits.h"
36 #include "ui/gfx/native_widget_types.h" 36 #include "ui/gfx/native_widget_types.h"
37 #include "ui/gfx/swap_result.h" 37 #include "ui/gfx/swap_result.h"
38 #include "url/ipc/url_param_traits.h" 38 #include "url/ipc/url_param_traits.h"
39 39
40 #if defined(OS_ANDROID) 40 #if defined(OS_MACOSX)
41 #include "gpu/ipc/common/android/surface_texture_peer.h"
42 #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 GPU_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)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // messages have been received. 115 // messages have been received.
118 IPC_SYNC_MESSAGE_CONTROL0_0(GpuChannelMsg_Nop) 116 IPC_SYNC_MESSAGE_CONTROL0_0(GpuChannelMsg_Nop)
119 117
120 // Retrieve the current list of gpu driver workarounds effectively running on 118 // Retrieve the current list of gpu driver workarounds effectively running on
121 // the gpu process. 119 // the gpu process.
122 IPC_SYNC_MESSAGE_CONTROL0_1(GpuChannelMsg_GetDriverBugWorkArounds, 120 IPC_SYNC_MESSAGE_CONTROL0_1(GpuChannelMsg_GetDriverBugWorkArounds,
123 std::vector<std::string> /* workarounds */) 121 std::vector<std::string> /* workarounds */)
124 122
125 #if defined(OS_ANDROID) 123 #if defined(OS_ANDROID)
126 //------------------------------------------------------------------------------ 124 //------------------------------------------------------------------------------
127 // Stream Texture Messages
128 // Tells the GPU process create and send the java surface texture object to
129 // the renderer process through the binder thread.
130 IPC_MESSAGE_ROUTED2(GpuStreamTextureMsg_EstablishPeer,
131 int32_t, /* primary_id */
132 int32_t /* secondary_id */)
133
134 // Tells the StreamTexture to send its SurfaceTexture to the browser process, 125 // Tells the StreamTexture to send its SurfaceTexture to the browser process,
135 // via the ScopedSurfaceRequestConduit. 126 // via the ScopedSurfaceRequestConduit.
136 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_ForwardForSurfaceRequest, 127 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_ForwardForSurfaceRequest,
137 base::UnguessableToken) 128 base::UnguessableToken)
138 129
139 // Tells the GPU process to set the size of StreamTexture from the given 130 // Tells the GPU process to set the size of StreamTexture from the given
140 // stream Id. 131 // stream Id.
141 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */) 132 IPC_MESSAGE_ROUTED1(GpuStreamTextureMsg_SetSize, gfx::Size /* size */)
142 133
143 // Tells the service-side instance to start sending frame available 134 // Tells the service-side instance to start sending frame available
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 GpuCommandBufferMsg_CreateImage_Params /* params */) 236 GpuCommandBufferMsg_CreateImage_Params /* params */)
246 237
247 // Destroy a previously created image. 238 // Destroy a previously created image.
248 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */) 239 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, int32_t /* id */)
249 240
250 // Attaches an external image stream to the client texture. 241 // Attaches an external image stream to the client texture.
251 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, 242 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
252 uint32_t, /* client_texture_id */ 243 uint32_t, /* client_texture_id */
253 int32_t, /* stream_id */ 244 int32_t, /* stream_id */
254 bool /* succeeded */) 245 bool /* succeeded */)
OLDNEW
« no previous file with comments | « gpu/ipc/common/android/surface_texture_peer.cc ('k') | gpu/ipc/service/stream_texture_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698