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

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: Rebased 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 33da403e228e9e8d9f63b11be6b23d6e172a4c42..721b5fd6e854905bb87978cf27a5407635d28fed 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -73,6 +73,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;
protected:
Compositor() {}
};

Powered by Google App Engine
This is Rietveld 408576698