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

Unified Diff: ui/gl/gl_image_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_memory.h ('k') | ui/gl/gl_image_ref_counted_memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_memory.cc
diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc
index 0c38c9b836d961cf10486f3d015571094a9c8e5b..8fda636947250b0f12fd7c7602f628d38bf60bf3 100644
--- a/ui/gl/gl_image_memory.cc
+++ b/ui/gl/gl_image_memory.cc
@@ -352,9 +352,7 @@ GLImageMemory::GLImageMemory(const gfx::Size& size, unsigned internalformat)
format_(gfx::BufferFormat::RGBA_8888),
stride_(0) {}
-GLImageMemory::~GLImageMemory() {
- DCHECK(!memory_);
-}
+GLImageMemory::~GLImageMemory() {}
bool GLImageMemory::Initialize(const unsigned char* memory,
gfx::BufferFormat format,
@@ -384,10 +382,6 @@ bool GLImageMemory::Initialize(const unsigned char* memory,
return true;
}
-void GLImageMemory::Destroy(bool have_context) {
- memory_ = nullptr;
-}
-
gfx::Size GLImageMemory::GetSize() {
return size_;
}
« no previous file with comments | « ui/gl/gl_image_memory.h ('k') | ui/gl/gl_image_ref_counted_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698