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

Unified Diff: content/common/gpu/gpu_memory_buffer_factory_io_surface.cc

Issue 1131463004: content: Cleanup IOSurface/SurfaceTexture destruction code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
diff --git a/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc b/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
index 574b4f68697126c0d2bec7f38718deace1308fdd..60cd598496fbc5641083786a0e2ecae4fbf08bab 100644
--- a/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
+++ b/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
@@ -146,9 +146,8 @@ void GpuMemoryBufferFactoryIOSurface::DestroyGpuMemoryBuffer(
base::AutoLock lock(io_surfaces_lock_);
IOSurfaceMapKey key(id, client_id);
- IOSurfaceMap::iterator it = io_surfaces_.find(key);
- if (it != io_surfaces_.end())
- io_surfaces_.erase(it);
+ DCHECK(io_surfaces_.find(key) != io_surfaces_.end());
+ io_surfaces_.erase(key);
}
gpu::ImageFactory* GpuMemoryBufferFactoryIOSurface::AsImageFactory() {
« no previous file with comments | « no previous file | content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698