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

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

Issue 600693002: content: Cleanup GpuMemoryBufferImpl destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_io_surface.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
index 911a37e94bbd32cd98c8c19677206903059040f9..c4b28ee72c50d508650a63ab42fe93b95c3d9aa9 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
@@ -15,7 +15,9 @@ namespace content {
// Implementation of GPU memory buffer based on IO surfaces.
class GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl {
public:
- GpuMemoryBufferImplIOSurface(const gfx::Size& size, unsigned internalformat);
+ GpuMemoryBufferImplIOSurface(const gfx::Size& size,
+ unsigned internalformat,
+ const DestructionCallback& callback);
virtual ~GpuMemoryBufferImplIOSurface();
static bool IsFormatSupported(unsigned internalformat);
@@ -32,6 +34,7 @@ class GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl {
virtual gfx::GpuMemoryBufferHandle GetHandle() const OVERRIDE;
private:
+ const DestructionCallback callback_;
base::ScopedCFTypeRef<IOSurfaceRef> io_surface_;
DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplIOSurface);

Powered by Google App Engine
This is Rietveld 408576698