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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.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_surface_texture.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
index cfce0ff28daedce4dd256460fb729d9095acb398..ccbaf50d47899e2c0b080d8bf05a7a394af5fe38 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
@@ -15,7 +15,8 @@ namespace content {
class GpuMemoryBufferImplSurfaceTexture : public GpuMemoryBufferImpl {
public:
GpuMemoryBufferImplSurfaceTexture(const gfx::Size& size,
- unsigned internalformat);
+ unsigned internalformat,
+ const DestructionCallback& callback);
virtual ~GpuMemoryBufferImplSurfaceTexture();
static bool IsFormatSupported(unsigned internalformat);
@@ -32,6 +33,7 @@ class GpuMemoryBufferImplSurfaceTexture : public GpuMemoryBufferImpl {
virtual uint32 GetStride() const OVERRIDE;
private:
+ const DestructionCallback callback_;
gfx::SurfaceTextureId surface_texture_id_;
ANativeWindow* native_window_;
size_t stride_;

Powered by Google App Engine
This is Rietveld 408576698