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

Side by Side Diff: content/common/gpu_host_messages.h

Issue 1878103002: Plumb a Browser->GPU surface destruction message for Android VDAs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing ifdefs Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/establish_channel_params.h" 10 #include "content/common/establish_channel_params.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 #if defined(OS_MACOSX) 189 #if defined(OS_MACOSX)
190 // Tells the GPU process that the browser process has handled the swap 190 // Tells the GPU process that the browser process has handled the swap
191 // buffers or post sub-buffer request. 191 // buffers or post sub-buffer request.
192 IPC_MESSAGE_CONTROL1(AcceleratedSurfaceMsg_BufferPresented, 192 IPC_MESSAGE_CONTROL1(AcceleratedSurfaceMsg_BufferPresented,
193 content::BufferPresentedParams) 193 content::BufferPresentedParams)
194 #endif 194 #endif
195 195
196 #if defined(OS_ANDROID) 196 #if defined(OS_ANDROID)
197 // Tells the GPU process to wake up the GPU because we're about to draw. 197 // Tells the GPU process to wake up the GPU because we're about to draw.
198 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu) 198 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu)
no sievers 2016/04/19 23:30:17 nit: newline
watk 2016/04/22 02:48:55 Done.
199 // Tells the GPU process to release the surface because it's being destroyed.
200 IPC_MESSAGE_CONTROL1(GpuMsg_DestroyingVideoSurface, int /* surface_id */)
199 #endif 201 #endif
200 202
201 // Tells the GPU process to remove all contexts. 203 // Tells the GPU process to remove all contexts.
202 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) 204 IPC_MESSAGE_CONTROL0(GpuMsg_Clean)
203 205
204 // Tells the GPU process to crash. 206 // Tells the GPU process to crash.
205 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) 207 IPC_MESSAGE_CONTROL0(GpuMsg_Crash)
206 208
207 // Tells the GPU process to hang. 209 // Tells the GPU process to hang.
208 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) 210 IPC_MESSAGE_CONTROL0(GpuMsg_Hang)
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, 263 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
262 content::AcceleratedSurfaceBuffersSwappedParams) 264 content::AcceleratedSurfaceBuffersSwappedParams)
263 #endif 265 #endif
264 266
265 #if defined(OS_WIN) 267 #if defined(OS_WIN)
266 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceCreatedChildWindow, 268 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceCreatedChildWindow,
267 gpu::SurfaceHandle /* parent_window */, 269 gpu::SurfaceHandle /* parent_window */,
268 gpu::SurfaceHandle /* child_window */) 270 gpu::SurfaceHandle /* child_window */)
269 #endif 271 #endif
270 272
273 #if defined(OS_ANDROID)
274 // Reponse to a GpuMsg_DestroyingVideoSurface message.
275 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceHandled,
no sievers 2016/04/19 23:30:17 nit: how about DestroyingVideoSurfaceAck? We use t
watk 2016/04/22 02:48:55 Done.
276 int /* surface_id */)
277 #endif
278
279
271 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, GURL /* url */) 280 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, GURL /* url */)
272 281
273 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext, 282 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext,
274 bool /* offscreen */, 283 bool /* offscreen */,
275 gpu::error::ContextLostReason /* reason */, 284 gpu::error::ContextLostReason /* reason */,
276 GURL /* url */) 285 GURL /* url */)
277 286
278 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, GURL /* url */) 287 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, GURL /* url */)
279 288
280 // Tells the browser about GPU memory usage statistics for UMA logging. 289 // Tells the browser about GPU memory usage statistics for UMA logging.
(...skipping 10 matching lines...) Expand all
291 // so the browser should stop sending the corresponding information 300 // so the browser should stop sending the corresponding information
292 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription, 301 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription,
293 int32_t /* client_id */, 302 int32_t /* client_id */,
294 unsigned int /* target */) 303 unsigned int /* target */)
295 304
296 // Message from GPU to add a GPU log message to the about:gpu page. 305 // Message from GPU to add a GPU log message to the about:gpu page.
297 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, 306 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage,
298 int /*severity*/, 307 int /*severity*/,
299 std::string /* header */, 308 std::string /* header */,
300 std::string /* message */) 309 std::string /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698