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

Unified Diff: ui/gl/gl_image_x11.cc

Issue 186123006: zero copy - NOT FOR REVIEW Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minus ui-map-image and ui-impl-side setting, plus tiled mode Created 6 years, 9 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_foobar.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_x11.cc
diff --git a/ui/gl/gl_image_x11.cc b/ui/gl/gl_image_x11.cc
index 6f7d8c6e85b3c735d07c1d0feccbee89d5c458be..cf0024053b38b706668775dee6069735b2d4904c 100644
--- a/ui/gl/gl_image_x11.cc
+++ b/ui/gl/gl_image_x11.cc
@@ -5,6 +5,7 @@
#include "ui/gl/gl_image.h"
#include "base/debug/trace_event.h"
+#include "ui/gl/gl_image_foobar.h"
#include "ui/gl/gl_image_glx.h"
#include "ui/gl/gl_image_shm.h"
#include "ui/gl/gl_image_stub.h"
@@ -52,6 +53,13 @@ scoped_refptr<GLImage> GLImage::CreateGLImageForGpuMemoryBuffer(
return image;
}
+ case FOOBAR_BUFFER: {
+ scoped_refptr<GLImageFoobar> image(new GLImageFoobar(size));
+ if (!image->Initialize(buffer))
+ return NULL;
+
+ return image;
+ }
default:
NOTREACHED();
return NULL;
« no previous file with comments | « ui/gl/gl_image_foobar.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698