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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 409723003: content: Add DeletedGpuMemoryBuffer IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused code Created 6 years, 5 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/renderer/render_thread_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 62c05a05d288b9e7d7f07e8964a7207f2559770b..4be6f6d8b983e61268710e860c27073dfb2fd55d 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1266,6 +1266,17 @@ scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer(
.PassAs<gfx::GpuMemoryBuffer>();
}
+void RenderThreadImpl::DeleteGpuMemoryBuffer(
+ scoped_ptr<gfx::GpuMemoryBuffer> buffer) {
+ gfx::GpuMemoryBufferHandle handle(buffer->GetHandle());
+
+ IPC::Message* message = new ChildProcessHostMsg_DeletedGpuMemoryBuffer(
+ handle.type, handle.global_id);
+
+ // Allow calling this from the compositor thread.
+ thread_safe_sender()->Send(message);
+}
+
void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() {
suspend_webkit_shared_timer_ = false;
}
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698