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

Unified Diff: content/child/child_gpu_memory_buffer_manager.cc

Issue 703463005: Re-land: content: Cleanup GpuMemoryBuffers when child process is removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gpu-memory-buffer-id-refactor
Patch Set: add manager null check to ~RenderMessageFilter Created 6 years, 1 month 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/browser/renderer_host/render_message_filter.cc ('k') | content/common/child_process_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_gpu_memory_buffer_manager.cc
diff --git a/content/child/child_gpu_memory_buffer_manager.cc b/content/child/child_gpu_memory_buffer_manager.cc
index 9031bdb98b77916213b59c46ab681be459fa9159..7cb793d5240c112e0e64134c571dcba8f1c77a06 100644
--- a/content/child/child_gpu_memory_buffer_manager.cc
+++ b/content/child/child_gpu_memory_buffer_manager.cc
@@ -12,13 +12,11 @@ namespace content {
namespace {
void DeletedGpuMemoryBuffer(ThreadSafeSender* sender,
- gfx::GpuMemoryBufferType type,
gfx::GpuMemoryBufferId id,
uint32 sync_point) {
TRACE_EVENT0("renderer",
"ChildGpuMemoryBufferManager::DeletedGpuMemoryBuffer");
- sender->Send(
- new ChildProcessHostMsg_DeletedGpuMemoryBuffer(type, id, sync_point));
+ sender->Send(new ChildProcessHostMsg_DeletedGpuMemoryBuffer(id, sync_point));
}
} // namespace
@@ -54,10 +52,9 @@ ChildGpuMemoryBufferManager::AllocateGpuMemoryBuffer(
handle,
size,
format,
- base::Bind(&DeletedGpuMemoryBuffer, sender_, handle.type, handle.id)));
+ base::Bind(&DeletedGpuMemoryBuffer, sender_, handle.id)));
if (!buffer) {
- sender_->Send(new ChildProcessHostMsg_DeletedGpuMemoryBuffer(
- handle.type, handle.id, 0));
+ sender_->Send(new ChildProcessHostMsg_DeletedGpuMemoryBuffer(handle.id, 0));
return scoped_ptr<gfx::GpuMemoryBuffer>();
}
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/common/child_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698