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

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: Fix WebView build 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
« no previous file with comments | « content/common/gpu/client/gl_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/compositor.h
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
index d0f98c28462069611896f751000a20ffcf56b6d4..7cf5da5a638c4833233115373a3360a6aaacd979 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -97,7 +97,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() {}
« no previous file with comments | « content/common/gpu/client/gl_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698