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

Unified Diff: ui/gl/gl_image_io_surface.cc

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | « ui/gl/gl_image_io_surface.h ('k') | ui/gl/gl_image_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_io_surface.cc
diff --git a/ui/gl/gl_image_io_surface.cc b/ui/gl/gl_image_io_surface.cc
index 566b05e4cc7646ee186171cb9bff1058063e4903..cf858abbf6d3ee5ff02532e9789e37338614f950 100644
--- a/ui/gl/gl_image_io_surface.cc
+++ b/ui/gl/gl_image_io_surface.cc
@@ -12,13 +12,13 @@
namespace gfx {
-GLImageIOSurface::GLImageIOSurface(gfx::Size size)
- : size_(size) {}
+GLImageIOSurface::GLImageIOSurface(const gfx::Size& size) : size_(size) {
+}
GLImageIOSurface::~GLImageIOSurface() { Destroy(); }
-bool GLImageIOSurface::Initialize(gfx::GpuMemoryBufferHandle buffer) {
- io_surface_.reset(IOSurfaceLookup(buffer.io_surface_id));
+bool GLImageIOSurface::Initialize(const gfx::GpuMemoryBufferHandle& handle) {
+ io_surface_.reset(IOSurfaceLookup(handle.io_surface_id));
if (!io_surface_) {
LOG(ERROR) << "IOSurface lookup failed";
return false;
« no previous file with comments | « ui/gl/gl_image_io_surface.h ('k') | ui/gl/gl_image_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698