Index: content/browser/renderer_host/render_widget_host_view_android.h |
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h |
index f00aa7d4725a30e40de7d585b4ae971c323e1752..8b6d59dbe47de1e1496a9f17b58e11f27711ea4c 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.h |
+++ b/content/browser/renderer_host/render_widget_host_view_android.h |
@@ -22,6 +22,7 @@ |
#include "content/browser/renderer_host/image_transport_factory_android.h" |
#include "content/browser/renderer_host/ime_adapter_android.h" |
#include "content/browser/renderer_host/render_widget_host_view_base.h" |
+#include "content/public/browser/android/content_view_core.h" |
#include "gpu/command_buffer/common/mailbox.h" |
#include "third_party/skia/include/core/SkColor.h" |
#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
@@ -139,7 +140,8 @@ class RenderWidgetHostViewAndroid |
const gfx::Rect& src_subrect, |
const gfx::Size& dst_size, |
const base::Callback<void(bool, const SkBitmap&)>& callback, |
- const SkBitmap::Config config) OVERRIDE; |
+ const SkBitmap::Config config, |
+ scoped_ptr<SkBitmap> bitmap) OVERRIDE; |
virtual void CopyFromCompositingSurfaceToVideoFrame( |
const gfx::Rect& src_subrect, |
const scoped_refptr<media::VideoFrame>& target, |
@@ -226,7 +228,10 @@ class RenderWidgetHostViewAndroid |
void GetScaledContentBitmap( |
float scale, |
- const base::Callback<void(bool, const SkBitmap&)>& result_callback); |
+ const base::Callback<void(bool, const SkBitmap&)>& result_callback, |
+ SkBitmap::Config bitmap_config, |
+ const gfx::Rect& bounding_rect, |
+ const BitmapAllocator bitmap_allocator); |
bool PopulateBitmapWithContents(jobject jbitmap); |
bool HasValidFrame() const; |
@@ -275,6 +280,7 @@ class RenderWidgetHostViewAndroid |
const gfx::Size& dst_size_in_pixel, |
const SkBitmap::Config config, |
const base::TimeTicks& start_time, |
+ scoped_ptr<SkBitmap> bitmap, |
const base::Callback<void(bool, const SkBitmap&)>& callback, |
scoped_ptr<cc::CopyOutputResult> result); |
static void PrepareBitmapCopyOutputResult( |