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

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

Issue 11558039: Subrect snapshot support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indents Created 8 years 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 bca7fe797a3cfb558eececb3152e814bdfa5d1e2..7539c08e73ef106bccc73e44c034643f6e76ec7c 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -94,7 +94,15 @@ class CONTENT_EXPORT Compositor {
// 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,
+ virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id,
+ gfx::JavaBitmap& bitmap) = 0;
+
+ // Grabs a copy of |texture_id| and saves it into |bitmap|. No scaling is
+ // done. |src_rect| allows the caller to specify which rect of |texture_id|
+ // to copy to |bitmap|. It needs to match the size of |bitmap|. Returns
+ // true if the |texture_id| was copied into |bitmap|, false if not.
+ virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id,
+ const gfx::Rect& src_rect,
gfx::JavaBitmap& bitmap) = 0;
protected:
Compositor() {}

Powered by Google App Engine
This is Rietveld 408576698