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

Unified Diff: ui/gl/gl_image.h

Issue 180723023: gpu: Mailbox emulation with EGLImage (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
« no previous file with comments | « ui/gl/gl_fence.cc ('k') | no next file » | 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 08d2be60a5adfe51d5b9a4ff0144498fce6d66f9..ae4846fe9239de626c064c36ba569aea3c29a6ee 100644
--- a/ui/gl/gl_image.h
+++ b/ui/gl/gl_image.h
@@ -39,6 +39,12 @@ class GL_EXPORT GLImage : public base::RefCounted<GLImage> {
// Called after the texture has been used for drawing.
virtual void DidUseTexImage();
+ // Called before the image data will be modified.
+ virtual void WillModifyPixels() {}
reveman 2014/03/12 19:18:04 This assumes that GLImage is not buffered like GLI
+
+ // Called after the image data has been modified.
+ virtual void DidModifyPixels() {}
+
// Indicate that image should be released after use.
// (For an Android work-around only).
virtual void SetReleaseAfterUse();
reveman 2014/03/12 19:18:04 Please change this too if you rename WillUseTexIma
« no previous file with comments | « ui/gl/gl_fence.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698