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

Unified Diff: ui/gl/gl_image_io_surface.h

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_glx.cc ('k') | ui/gl/gl_image_io_surface.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.h
diff --git a/ui/gl/gl_image_io_surface.h b/ui/gl/gl_image_io_surface.h
index 7825e7da08c8215580e527ff693120774ed24964..fbc09bc765b6c711e957e3f38503f22536614c7e 100644
--- a/ui/gl/gl_image_io_surface.h
+++ b/ui/gl/gl_image_io_surface.h
@@ -8,15 +8,16 @@
#include <IOSurface/IOSurfaceAPI.h>
#include "base/mac/scoped_cftyperef.h"
+#include "ui/gfx/gpu_memory_buffer.h"
#include "ui/gl/gl_image.h"
namespace gfx {
class GL_EXPORT GLImageIOSurface : public GLImage {
public:
- explicit GLImageIOSurface(gfx::Size size);
+ explicit GLImageIOSurface(const gfx::Size& size);
- bool Initialize(gfx::GpuMemoryBufferHandle buffer);
+ bool Initialize(const gfx::GpuMemoryBufferHandle& handle);
// Overridden from GLImage:
virtual void Destroy() OVERRIDE {}
@@ -33,7 +34,7 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
private:
base::ScopedCFTypeRef<IOSurfaceRef> io_surface_;
- gfx::Size size_;
+ const gfx::Size size_;
DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface);
};
« no previous file with comments | « ui/gl/gl_image_glx.cc ('k') | ui/gl/gl_image_io_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698