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

Unified Diff: ui/gl/gl_image_egl.h

Issue 212933009: ui: Refactor GLImageEGL for usage by targets other than EGL_NATIVE_BUFFER_ANDROID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_egl.h
diff --git a/ui/gl/gl_image_egl.h b/ui/gl/gl_image_egl.h
index fcb49c4232ae125c944633e9b31461384222bb3c..1339654acbe879674fb14a0fd2eaaba9db8907aa 100644
--- a/ui/gl/gl_image_egl.h
+++ b/ui/gl/gl_image_egl.h
@@ -5,7 +5,7 @@
#ifndef UI_GL_GL_IMAGE_EGL_H_
#define UI_GL_GL_IMAGE_EGL_H_
-#include "ui/gl/gl_bindings.h" // for EGLImageKHR
+#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_image.h"
namespace gfx {
@@ -14,31 +14,25 @@ class GL_EXPORT GLImageEGL : public GLImage {
public:
explicit GLImageEGL(gfx::Size size);
- bool Initialize(gfx::GpuMemoryBufferHandle buffer);
+ bool Initialize(EGLenum target, EGLClientBuffer buffer, const EGLint* attrs);
// Overridden from GLImage:
virtual void Destroy() OVERRIDE;
virtual gfx::Size GetSize() OVERRIDE;
virtual bool BindTexImage(unsigned target) OVERRIDE;
- virtual void ReleaseTexImage(unsigned target) OVERRIDE;
- virtual void WillUseTexImage() OVERRIDE;
- virtual void DidUseTexImage() OVERRIDE;
+ virtual void ReleaseTexImage(unsigned target) OVERRIDE {}
+ virtual void WillUseTexImage() OVERRIDE {}
+ virtual void DidUseTexImage() OVERRIDE {}
virtual void WillModifyTexImage() OVERRIDE {}
virtual void DidModifyTexImage() OVERRIDE {}
- virtual void SetReleaseAfterUse() OVERRIDE;
protected:
virtual ~GLImageEGL();
- private:
EGLImageKHR egl_image_;
gfx::Size size_;
- bool release_after_use_;
- bool in_use_;
- unsigned target_;
- EGLImageKHR egl_image_for_unbind_;
- GLuint texture_id_for_unbind_;
+ private:
DISALLOW_COPY_AND_ASSIGN(GLImageEGL);
};

Powered by Google App Engine
This is Rietveld 408576698