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

Unified Diff: ui/gl/gl_image_ref_counted_memory.cc

Issue 2449993005: Remove GLImage::Destroy(). (Closed)
Patch Set: One more Destroy() call on Mac. Created 4 years, 2 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
« no previous file with comments | « ui/gl/gl_image_ref_counted_memory.h ('k') | ui/gl/gl_image_shared_memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 eb93e3fd37b3b32f0b09ada5107ad42c9811adb7..327d0e64e7a2fd14913eb6f220151b4eb8b9b91a 100644
--- a/ui/gl/gl_image_ref_counted_memory.cc
+++ b/ui/gl/gl_image_ref_counted_memory.cc
@@ -19,9 +19,7 @@ GLImageRefCountedMemory::GLImageRefCountedMemory(const gfx::Size& size,
unsigned internalformat)
: GLImageMemory(size, internalformat) {}
-GLImageRefCountedMemory::~GLImageRefCountedMemory() {
- DCHECK(!ref_counted_memory_.get());
-}
+GLImageRefCountedMemory::~GLImageRefCountedMemory() {}
bool GLImageRefCountedMemory::Initialize(
base::RefCountedMemory* ref_counted_memory,
@@ -37,11 +35,6 @@ bool GLImageRefCountedMemory::Initialize(
return true;
}
-void GLImageRefCountedMemory::Destroy(bool have_context) {
- GLImageMemory::Destroy(have_context);
- ref_counted_memory_ = nullptr;
-}
-
void GLImageRefCountedMemory::OnMemoryDump(
base::trace_event::ProcessMemoryDump* pmd,
uint64_t process_tracing_id,
« no previous file with comments | « ui/gl/gl_image_ref_counted_memory.h ('k') | ui/gl/gl_image_shared_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698