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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl.h

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
Index: content/common/gpu/client/gpu_memory_buffer_impl.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl.h b/content/common/gpu/client/gpu_memory_buffer_impl.h
index 95bddccff2e3c8fdb36d2678059c6d889a3d77c7..2565c02653a71a4ac1a0b46a991dd4154839d95b 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl.h
@@ -35,10 +35,15 @@ class GpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
base::ProcessHandle child_process,
const AllocationCallback& callback);
+ // Notify that GPU memory buffer has been deleted by |child_process|.
+ static void DeletedByChildProcess(gfx::GpuMemoryBufferType type,
+ const gfx::GpuMemoryBufferId& id,
+ base::ProcessHandle child_process);
+
// Creates an instance from the given |handle|. |size| and |internalformat|
// should match what was used to allocate the |handle|.
static scoped_ptr<GpuMemoryBufferImpl> CreateFromHandle(
- gfx::GpuMemoryBufferHandle handle,
+ const gfx::GpuMemoryBufferHandle& handle,
const gfx::Size& size,
unsigned internalformat);
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.h ('k') | content/common/gpu/client/gpu_memory_buffer_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698