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

Unified Diff: content/browser/gpu/browser_gpu_channel_host_factory.cc

Issue 654223006: Cleanup GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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());

Powered by Google App Engine
This is Rietveld 408576698