| Index: content/browser/gpu/browser_gpu_channel_host_factory.cc
|
| diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.cc b/content/browser/gpu/browser_gpu_channel_host_factory.cc
|
| index f4fb185f532cb2c7a4a64bf1da28a67d319c3610..1e4b5802d1ab4b701624a7f6463bc3fdd2ddf474 100644
|
| --- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
|
| +++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
|
| @@ -309,6 +309,17 @@ CreateCommandBufferResult BrowserGpuChannelHostFactory::CreateViewCommandBuffer(
|
| return request.result;
|
| }
|
|
|
| +void BrowserGpuChannelHostFactory::WaitForPendingGpuMemoryBufferUsageToComplete(
|
| + const base::Closure& callback) {
|
| + GpuChannelHost* host = GetGpuChannel();
|
| + if (!host) {
|
| + callback.Run();
|
| + return;
|
| + }
|
| +
|
| + host->WaitForPendingGpuMemoryBufferUsageToComplete(callback);
|
| +}
|
| +
|
| GpuChannelHost* BrowserGpuChannelHostFactory::EstablishGpuChannelSync(
|
| CauseForGpuLaunch cause_for_gpu_launch) {
|
| EstablishGpuChannel(cause_for_gpu_launch, base::Closure());
|
|
|