| Index: content/public/renderer/render_view.h
|
| diff --git a/content/public/renderer/render_view.h b/content/public/renderer/render_view.h
|
| index 5cf2af9083b7b5e8a8000cd2e5b9dd228b89585f..f60847b9f28ce1b95c41baa7e7f92e81e2e5a978 100644
|
| --- a/content/public/renderer/render_view.h
|
| +++ b/content/public/renderer/render_view.h
|
| @@ -9,10 +9,13 @@
|
| #include "base/string16.h"
|
| #include "content/common/content_export.h"
|
| #include "ipc/ipc_sender.h"
|
| +#include "skia/ext/refptr.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityState.h"
|
| #include "ui/gfx/native_widget_types.h"
|
|
|
| +class SkPicture;
|
| +
|
| namespace webkit_glue {
|
| struct WebPreferences;
|
| }
|
| @@ -163,6 +166,15 @@ class CONTENT_EXPORT RenderView : public IPC::Sender {
|
| // Returns a collection of security info about |frame|.
|
| virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0;
|
|
|
| +#if defined(OS_ANDROID)
|
| + // Returns a SkPicture with the full contents of the current frame as part of
|
| + // the legacy Android WebView capture picture API. As it involves playing back
|
| + // all the drawing commands of the current frame it can have an important
|
| + // performance impact and should not be used for other purposes.
|
| + // Requires enabling the impl-side painting feature in the compositor.
|
| + virtual skia::RefPtr<SkPicture> CapturePicture() = 0;
|
| +#endif
|
| +
|
| protected:
|
| virtual ~RenderView() {}
|
| };
|
|
|