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

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 a threadchecker 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
« no previous file with comments | « content/common/gpu/media/avda_surface_tracker.cc ('k') | content/content_common.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 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 #if defined(OS_MACOSX) 187 #if defined(OS_MACOSX)
188 // Tells the GPU process that the browser process has handled the swap 188 // Tells the GPU process that the browser process has handled the swap
189 // buffers or post sub-buffer request. 189 // buffers or post sub-buffer request.
190 IPC_MESSAGE_CONTROL1(AcceleratedSurfaceMsg_BufferPresented, 190 IPC_MESSAGE_CONTROL1(AcceleratedSurfaceMsg_BufferPresented,
191 content::BufferPresentedParams) 191 content::BufferPresentedParams)
192 #endif 192 #endif
193 193
194 #if defined(OS_ANDROID) 194 #if defined(OS_ANDROID)
195 // Tells the GPU process to wake up the GPU because we're about to draw. 195 // Tells the GPU process to wake up the GPU because we're about to draw.
196 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu) 196 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu)
197
198 // Tells the GPU process to release the surface because it's being destroyed.
199 IPC_MESSAGE_CONTROL1(GpuMsg_DestroyingVideoSurface, int /* surface_id */)
197 #endif 200 #endif
198 201
199 // Tells the GPU process to remove all contexts. 202 // Tells the GPU process to remove all contexts.
200 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) 203 IPC_MESSAGE_CONTROL0(GpuMsg_Clean)
201 204
202 // Tells the GPU process to crash. 205 // Tells the GPU process to crash.
203 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) 206 IPC_MESSAGE_CONTROL0(GpuMsg_Crash)
204 207
205 // Tells the GPU process to hang. 208 // Tells the GPU process to hang.
206 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) 209 IPC_MESSAGE_CONTROL0(GpuMsg_Hang)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, 256 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
254 content::AcceleratedSurfaceBuffersSwappedParams) 257 content::AcceleratedSurfaceBuffersSwappedParams)
255 #endif 258 #endif
256 259
257 #if defined(OS_WIN) 260 #if defined(OS_WIN)
258 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceCreatedChildWindow, 261 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceCreatedChildWindow,
259 gpu::SurfaceHandle /* parent_window */, 262 gpu::SurfaceHandle /* parent_window */,
260 gpu::SurfaceHandle /* child_window */) 263 gpu::SurfaceHandle /* child_window */)
261 #endif 264 #endif
262 265
266 #if defined(OS_ANDROID)
267 // Response to a GpuMsg_DestroyingVideoSurface message.
268 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck,
269 int /* surface_id */)
270 #endif
271
272
263 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, GURL /* url */) 273 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, GURL /* url */)
264 274
265 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext, 275 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext,
266 bool /* offscreen */, 276 bool /* offscreen */,
267 gpu::error::ContextLostReason /* reason */, 277 gpu::error::ContextLostReason /* reason */,
268 GURL /* url */) 278 GURL /* url */)
269 279
270 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, GURL /* url */) 280 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, GURL /* url */)
271 281
272 // Tells the browser about GPU memory usage statistics for UMA logging. 282 // Tells the browser about GPU memory usage statistics for UMA logging.
273 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats, 283 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats,
274 gpu::GPUMemoryUmaStats /* GPU memory UMA stats */) 284 gpu::GPUMemoryUmaStats /* GPU memory UMA stats */)
275 285
276 // Message from GPU to add a GPU log message to the about:gpu page. 286 // Message from GPU to add a GPU log message to the about:gpu page.
277 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, 287 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage,
278 int /*severity*/, 288 int /*severity*/,
279 std::string /* header */, 289 std::string /* header */,
280 std::string /* message */) 290 std::string /* message */)
OLDNEW
« no previous file with comments | « content/common/gpu/media/avda_surface_tracker.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698