| Index: content/gpu/gpu_child_thread.cc
|
| diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
|
| index a713c3dcdec4fe8ab3cfc3910061bff442e4ffe2..5ab504727be3acac857e3e4e9f6d192122ea1892 100644
|
| --- a/content/gpu/gpu_child_thread.cc
|
| +++ b/content/gpu/gpu_child_thread.cc
|
| @@ -45,6 +45,10 @@
|
| #include "ui/ozone/public/ozone_platform.h"
|
| #endif
|
|
|
| +#if defined(OS_ANDROID)
|
| +#include "content/common/gpu/media/avda_surface_tracker.h"
|
| +#endif
|
| +
|
| namespace content {
|
| namespace {
|
|
|
| @@ -281,6 +285,8 @@ bool GpuChildThread::OnMessageReceived(const IPC::Message& msg) {
|
| IPC_MESSAGE_HANDLER(GpuMsg_LoadedShader, OnLoadedShader)
|
| #if defined(OS_ANDROID)
|
| IPC_MESSAGE_HANDLER(GpuMsg_WakeUpGpu, OnWakeUpGpu);
|
| + IPC_MESSAGE_HANDLER(GpuMsg_DestroyingVideoSurface,
|
| + OnDestroyingVideoSurface);
|
| #endif
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
| @@ -559,6 +565,11 @@ void GpuChildThread::OnWakeUpGpu() {
|
| if (gpu_channel_manager_)
|
| gpu_channel_manager_->WakeUpGpu();
|
| }
|
| +
|
| +void GpuChildThread::OnDestroyingVideoSurface(int surface_id) {
|
| + AVDASurfaceTracker::GetInstance()->NotifyDestroyingSurface(surface_id);
|
| + Send(new GpuHostMsg_DestroyingVideoSurfaceAck(surface_id));
|
| +}
|
| #endif
|
|
|
| void GpuChildThread::OnLoseAllContexts() {
|
|
|