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

Unified Diff: ui/gl/gl_image_shm.h

Issue 198703002: Add GL_TEXTURE_EXTERNAL_OES as supported texture target for CHROMIUM_map_image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: creating eglimage and texture everytime during bindteximage + comments 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
Index: ui/gl/gl_image_shm.h
diff --git a/ui/gl/gl_image_shm.h b/ui/gl/gl_image_shm.h
index fea9d33df5713669eeac0ca8a2f8114b7a675a20..bc514ffdae64fb9a38170ea6b056ca964180a272 100644
--- a/ui/gl/gl_image_shm.h
+++ b/ui/gl/gl_image_shm.h
@@ -6,6 +6,7 @@
#define UI_GL_GL_IMAGE_SHM_H_
#include "base/memory/scoped_ptr.h"
+#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_image.h"
namespace gfx {
@@ -33,6 +34,8 @@ class GL_EXPORT GLImageShm : public GLImage {
scoped_ptr<base::SharedMemory> shared_memory_;
gfx::Size size_;
unsigned internalformat_;
+ GLuint egl_texture_id_;
+ EGLImageKHR egl_image_;
DISALLOW_COPY_AND_ASSIGN(GLImageShm);
};

Powered by Google App Engine
This is Rietveld 408576698