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

Unified Diff: content/renderer/render_thread_impl.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/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 9cc2e7e0bc1d6823127ade596acd7d7a9f23dcf9..d9c4c41b1cfa047be063795416032da42b24a4a4 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1246,6 +1246,17 @@ CreateCommandBufferResult RenderThreadImpl::CreateViewCommandBuffer(
return result;
}
+void RenderThreadImpl::WaitForPendingGpuMemoryBufferUsageToComplete(
+ const base::Closure& callback) {
+ GpuChannelHost* host = GetGpuChannel();
+ if (!host) {
+ callback.Run();
+ return;
+ }
+
+ host->WaitForPendingGpuMemoryBufferUsageToComplete(callback);
+}
+
void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() {
suspend_webkit_shared_timer_ = false;
}
« content/common/gpu/client/gpu_channel_host.cc ('K') | « content/renderer/render_thread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698