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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc

Issue 654223006: Cleanup GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/common/gpu/client/gpu_memory_buffer_impl_ozone.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc b/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc
index 7420444ac402fb68755b9931482bb9ca424b953c..9e6b5e623f6065f17f1198fd7430ba1711ba2208 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc
@@ -60,7 +60,18 @@ void GpuMemoryBufferImpl::AllocateForChildProcess(
void GpuMemoryBufferImpl::DeletedByChildProcess(
gfx::GpuMemoryBufferType type,
const gfx::GpuMemoryBufferId& id,
- base::ProcessHandle child_process) {
+ base::ProcessHandle child_process,
+ uint32_t sync_point) {
+ switch (type) {
+ case gfx::SHARED_MEMORY_BUFFER:
+ break;
+ case gfx::OZONE_NATIVE_BUFFER:
+ GpuMemoryBufferImplOzoneNativeBuffer::DeletedByChildProcess(id,
+ sync_point);
piman 2014/11/03 19:36:34 What prevents an arbitrary renderer from destroyin
alexst (slow to review) 2014/11/03 20:29:17 Good point, AllocateForChildProcess takes both Pro
+ break;
+ default:
+ LOG(ERROR) << "Unexpected GpuMemoryBufferType";
+ }
}
// static

Powered by Google App Engine
This is Rietveld 408576698