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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu_host_messages.h
diff --git a/content/common/gpu_host_messages.h b/content/common/gpu_host_messages.h
index e507cd68e7bff2b042172c84497602b04b6880ab..a5c11ccf85826d0266cdcbe5f39fa74bdeed7078 100644
--- a/content/common/gpu_host_messages.h
+++ b/content/common/gpu_host_messages.h
@@ -194,6 +194,9 @@ IPC_MESSAGE_CONTROL1(AcceleratedSurfaceMsg_BufferPresented,
#if defined(OS_ANDROID)
// Tells the GPU process to wake up the GPU because we're about to draw.
IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu)
+
+// Tells the GPU process to release the surface because it's being destroyed.
+IPC_MESSAGE_CONTROL1(GpuMsg_DestroyingVideoSurface, int /* surface_id */)
#endif
// Tells the GPU process to remove all contexts.
@@ -260,6 +263,13 @@ IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceCreatedChildWindow,
gpu::SurfaceHandle /* child_window */)
#endif
+#if defined(OS_ANDROID)
+// Response to a GpuMsg_DestroyingVideoSurface message.
+IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck,
+ int /* surface_id */)
+#endif
+
+
IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, GURL /* url */)
IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext,
« 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