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

Unified Diff: ui/gl/gl_image_egl.h

Issue 66033009: [Android] Add workaround to unbind gpu memory buffer only on NVIDIA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comma Created 7 years, 1 month 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 2c64f4d6becec430849a5fb9f89d76580c680062..64bff7a27160eedca0e458769a2ffa50a3b85c25 100644
--- a/ui/gl/gl_image_egl.h
+++ b/ui/gl/gl_image_egl.h
@@ -23,6 +23,7 @@ class GL_EXPORT GLImageEGL : public GLImage {
virtual void ReleaseTexImage() OVERRIDE;
virtual void WillUseTexImage() OVERRIDE;
virtual void DidUseTexImage() OVERRIDE;
+ virtual void SetReleaseAfterUse() OVERRIDE;
protected:
virtual ~GLImageEGL();
@@ -30,6 +31,7 @@ class GL_EXPORT GLImageEGL : public GLImage {
private:
EGLImageKHR egl_image_;
gfx::Size size_;
+ bool need_unbind_after_use_;
reveman 2013/11/12 20:56:54 release_after_use_ instead for consistency?
boliu 2013/11/12 21:06:50 Done.
bool in_use_;
DISALLOW_COPY_AND_ASSIGN(GLImageEGL);
« ui/gl/gl_image.cc ('K') | « ui/gl/gl_image.cc ('k') | ui/gl/gl_image_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698