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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 709433002: Revert of 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: 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
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 27b9cd54f5f9bd8c904fae355ee41fd6e6cbbc06..b218da885612c4fe06e6e7d5e07c8ebdfa9f0ad1 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -326,8 +326,7 @@
DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(plugin_host_clients_.empty());
HostSharedBitmapManager::current()->ProcessRemoved(PeerHandle());
- BrowserGpuMemoryBufferManager::current()->ProcessRemoved(
- PeerHandle(), render_process_id_);
+ BrowserGpuMemoryBufferManager::current()->ProcessRemoved(PeerHandle());
HostDiscardableSharedMemoryManager::current()->ProcessRemoved(PeerHandle());
}
@@ -1272,10 +1271,11 @@
}
void RenderMessageFilter::OnDeletedGpuMemoryBuffer(
+ gfx::GpuMemoryBufferType type,
gfx::GpuMemoryBufferId id,
uint32 sync_point) {
BrowserGpuMemoryBufferManager::current()->ChildProcessDeletedGpuMemoryBuffer(
- id, PeerHandle(), render_process_id_, sync_point);
+ type, id, PeerHandle(), render_process_id_, sync_point);
}
} // namespace content
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/browser/renderer_host/render_view_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698