| 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() {}
|
|
|