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

Unified Diff: ui/gl/gl_image_shared_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_shared_memory.h ('k') | ui/gl/gl_image_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_shared_memory.cc
diff --git a/ui/gl/gl_image_shared_memory.cc b/ui/gl/gl_image_shared_memory.cc
index f4b080eec9856cebf025b5772f80c2ca98aaf9b5..83c8e5eba5388c0585072fa87a2c80f51699f499 100644
--- a/ui/gl/gl_image_shared_memory.cc
+++ b/ui/gl/gl_image_shared_memory.cc
@@ -20,9 +20,7 @@ GLImageSharedMemory::GLImageSharedMemory(const gfx::Size& size,
unsigned internalformat)
: GLImageMemory(size, internalformat) {}
-GLImageSharedMemory::~GLImageSharedMemory() {
- DCHECK(!shared_memory_);
-}
+GLImageSharedMemory::~GLImageSharedMemory() {}
bool GLImageSharedMemory::Initialize(
const base::SharedMemoryHandle& handle,
@@ -72,11 +70,6 @@ bool GLImageSharedMemory::Initialize(
return true;
}
-void GLImageSharedMemory::Destroy(bool have_context) {
- GLImageMemory::Destroy(have_context);
- shared_memory_.reset();
-}
-
void GLImageSharedMemory::OnMemoryDump(
base::trace_event::ProcessMemoryDump* pmd,
uint64_t process_tracing_id,
« no previous file with comments | « ui/gl/gl_image_shared_memory.h ('k') | ui/gl/gl_image_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698