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 d9b0d972488e6539931163feef20e45f3f82fc88..d8ea83da7ceb575af94bc32e9081c7a33d3ab4aa 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.h |
+++ b/content/browser/renderer_host/render_widget_host_view_android.h |
@@ -33,6 +33,7 @@ struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
namespace cc { |
+class CopyOutputResult; |
class DelegatedRendererLayer; |
class Layer; |
class TextureLayer; |
@@ -256,6 +257,17 @@ class RenderWidgetHostViewAndroid |
void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); |
void ScheduleAnimationIfNecessary(); |
+ // Called after async screenshot task completes. Scales and crops the result |
+ // of the copy. |
+ static void PrepareTextureCopyOutputResult( |
+ const gfx::Size& dst_size_in_pixel, |
+ const base::Callback<void(bool, const SkBitmap&)>& callback, |
+ scoped_ptr<cc::CopyOutputResult> result); |
+ static void PrepareBitmapCopyOutputResult( |
+ const gfx::Size& dst_size_in_pixel, |
+ const base::Callback<void(bool, const SkBitmap&)>& callback, |
+ scoped_ptr<cc::CopyOutputResult> result); |
+ |
// The model object. |
RenderWidgetHostImpl* host_; |