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

Unified Diff: ui/gl/gl_image_surface_texture.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_surface_texture.h ('k') | ui/gl/gl_image_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_surface_texture.cc
diff --git a/ui/gl/gl_image_surface_texture.cc b/ui/gl/gl_image_surface_texture.cc
index 8d0a0e7e22b0476da7157aeae8c0a106bbcd1a96..bb9fa135e1e718a26472c945f6aa68ee3991c4fc 100644
--- a/ui/gl/gl_image_surface_texture.cc
+++ b/ui/gl/gl_image_surface_texture.cc
@@ -10,17 +10,19 @@
namespace gfx {
-GLImageSurfaceTexture::GLImageSurfaceTexture(gfx::Size size)
- : size_(size), texture_id_(0) {}
+GLImageSurfaceTexture::GLImageSurfaceTexture(const gfx::Size& size)
+ : size_(size), texture_id_(0) {
+}
GLImageSurfaceTexture::~GLImageSurfaceTexture() { Destroy(); }
-bool GLImageSurfaceTexture::Initialize(gfx::GpuMemoryBufferHandle buffer) {
+bool GLImageSurfaceTexture::Initialize(
+ const gfx::GpuMemoryBufferHandle& handle) {
DCHECK(!surface_texture_);
surface_texture_ =
SurfaceTextureTracker::GetInstance()->AcquireSurfaceTexture(
- buffer.surface_texture_id.primary_id,
- buffer.surface_texture_id.secondary_id);
+ handle.surface_texture_id.primary_id,
+ handle.surface_texture_id.secondary_id);
return !!surface_texture_;
}
« no previous file with comments | « ui/gl/gl_image_surface_texture.h ('k') | ui/gl/gl_image_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698