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

Unified Diff: ui/gl/gl_image.h

Issue 536353002: gpu: Add CopyTexImage function to GLImage API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep support for binding images to multiple textures Created 6 years, 3 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.h
diff --git a/ui/gl/gl_image.h b/ui/gl/gl_image.h
index c3a9b9271015d6b76620d4ea81893b23b4e887a3..45fac2abcdc37f4e5ec8822f7a457842d6febfd8 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -33,6 +33,9 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
// Release image from texture currently bound to |target|.
virtual void ReleaseTexImage(unsigned target) = 0;
+ // Copy image to texture currently bound to |target|.
+ virtual bool CopyTexImage(unsigned target) = 0;
+
// Called before the texture is used for drawing.
virtual void WillUseTexImage() = 0;

Powered by Google App Engine
This is Rietveld 408576698