Index: ui/gl/gl_image_ref_counted_memory.cc |
diff --git a/ui/gl/gl_image_ref_counted_memory.cc b/ui/gl/gl_image_ref_counted_memory.cc |
index 5ca65d0abc062fff7b9c714c8f8397da0fedecc3..e6d5ba6e4a2e4f66aa35fc33ed60baccf7c474e9 100644 |
--- a/ui/gl/gl_image_ref_counted_memory.cc |
+++ b/ui/gl/gl_image_ref_counted_memory.cc |
@@ -15,7 +15,7 @@ GLImageRefCountedMemory::GLImageRefCountedMemory(const gfx::Size& size, |
} |
GLImageRefCountedMemory::~GLImageRefCountedMemory() { |
- Destroy(); |
+ DCHECK(!ref_counted_memory_); |
} |
bool GLImageRefCountedMemory::Initialize( |
@@ -29,8 +29,8 @@ bool GLImageRefCountedMemory::Initialize( |
return true; |
} |
-void GLImageRefCountedMemory::Destroy() { |
- GLImageMemory::Destroy(); |
+void GLImageRefCountedMemory::Destroy(bool have_context) { |
+ GLImageMemory::Destroy(have_context); |
ref_counted_memory_ = NULL; |
} |