Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(982)

Unified Diff: content/public/renderer/render_view.h

Issue 11861008: Expose the capturePicture feature in RenderView for Android WebView legacy API support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed sync IPC issues. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {}
};

Powered by Google App Engine
This is Rietveld 408576698