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

Unified Diff: ui/gl/gl_image.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: Update a more comments 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
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | ui/gl/gl_image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image.h
diff --git a/ui/gl/gl_image.h b/ui/gl/gl_image.h
index 859966c6a7f00d804c9bd1d7def8632a27c3d689..b5b28755cc100db7a521aa5c1a8d363f7a403cb4 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -37,7 +37,9 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
virtual void WillUseTexImage();
// Called after the texture has been used for drawing.
- virtual void DidUseTexImage();
+ // If |release_tex_image| is false, then skip releasing image from texture
+ // currently bound to GL_TEXTURE_2D.
+ virtual void DidUseTexImage(bool release_tex_image);
reveman 2013/11/12 16:39:42 Bind/release as part of Will/DidUseTexImage is an
boliu 2013/11/12 16:47:47 Ahh, that's why this felt so weird. Yes, SetUnbind
// Create a GL image for a window.
static scoped_refptr<GLImage> CreateGLImage(gfx::PluginWindowHandle window);
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | ui/gl/gl_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698