diff options
author | dtrainor@chromium.org <dtrainor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 05:40:09 +0000 |
---|---|---|
committer | dtrainor@chromium.org <dtrainor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-19 05:40:09 +0000 |
commit | a58b4ffbc1913f3f6cb8957b90489ec6724c3be3 (patch) | |
tree | 322a6f9b15b7e63a7342cbdcc99118595f6c6db5 /android_webview/native/aw_contents.cc | |
parent | 501a770c98cce5fadde5f11d950083ab2afe16f3 (diff) | |
download | chromium_src-a58b4ffbc1913f3f6cb8957b90489ec6724c3be3.zip chromium_src-a58b4ffbc1913f3f6cb8957b90489ec6724c3be3.tar.gz chromium_src-a58b4ffbc1913f3f6cb8957b90489ec6724c3be3.tar.bz2 |
Subrect snapshot support.
Handle grabbing the subrect snapshot of a texture. Leaving the old method
in there for now to deal with not breaking other repos when committing.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11558039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/native/aw_contents.cc')
-rw-r--r-- | android_webview/native/aw_contents.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc index c3abd81..8e18a64 100644 --- a/android_webview/native/aw_contents.cc +++ b/android_webview/native/aw_contents.cc @@ -120,8 +120,15 @@ class NullCompositor : public content::Compositor { return 0; } virtual void DeleteTexture(WebKit::WebGLId texture_id) OVERRIDE {} - virtual void CopyTextureToBitmap(WebKit::WebGLId texture_id, - gfx::JavaBitmap& bitmap) OVERRIDE {} + virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, + gfx::JavaBitmap& bitmap) OVERRIDE { + return false; + } + virtual bool CopyTextureToBitmap(WebKit::WebGLId texture_id, + const gfx::Rect& src_rect, + gfx::JavaBitmap& bitmap) OVERRIDE { + return false; + } virtual void SetHasTransparentBackground(bool flag) OVERRIDE {} }; |