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

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

Issue 409723003: content: Add DeletedGpuMemoryBuffer IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused code Created 6 years, 5 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 | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/gpu_messages.h » ('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_x11_pixmap.cc
diff --git a/content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.cc b/content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.cc
index 04f2896fcd4dfc6591d165feb96eee102e5e92bb..95be1740c588b5c78735ac9048ee51d64ce08ae0 100644
--- a/content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.cc
+++ b/content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.cc
@@ -39,12 +39,10 @@ GpuMemoryBufferFactoryX11Pixmap::AcquireImageForGpuMemoryBuffer(
X11PixmapMap::iterator it = pixmaps_.find(key);
if (it == pixmaps_.end())
return scoped_refptr<gfx::GLImage>();
- XID pixmap = it->second;
- pixmaps_.erase(it);
scoped_refptr<gfx::GLImageGLX> image(
new gfx::GLImageGLX(size, internalformat));
- if (!image->Initialize(pixmap))
+ if (!image->Initialize(it->second))
return scoped_refptr<gfx::GLImage>();
return image;
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698