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

Unified Diff: content/public/browser/android/compositor.h

Issue 11234008: Enable texture readback support for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 2 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: content/public/browser/android/compositor.h
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
index 021624d67be87d550060d992ba0c1a0ca94d376a..86425f0967f61410f37cbe4c53a0d05135c6db12 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -70,6 +70,10 @@ class Compositor {
// Deletes an OpenGL texture.
virtual void DeleteTexture(WebKit::WebGLId texture_id) = 0;
+ // Grabs a copy of |texture_id| and saves it into |bitmap|. No scaling is
+ // done. It is assumed that the texture size matches that of the bitmap.
+ virtual void CopyTextureToBitmap(WebKit::WebGLId texture_id,
+ gfx::JavaBitmap& bitmap) = 0;
no sievers 2012/10/20 00:42:36 Do you really need to add this generic interface?
David Trainor- moved to gerrit 2012/10/22 08:31:07 For ContentViewCore#getBitmap it is, but for some
protected:
Compositor() {}
};

Powered by Google App Engine
This is Rietveld 408576698