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

Unified Diff: webkit/compositor_bindings/web_layer_tree_view_impl.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: Created 7 years, 11 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: webkit/compositor_bindings/web_layer_tree_view_impl.h
diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.h b/webkit/compositor_bindings/web_layer_tree_view_impl.h
index 4817221b658e88b23297fff10682e36d40524d03..aa6feab05401130f2b4526ba5997fc7da4073d39 100644
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.h
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.h
@@ -7,7 +7,9 @@
#include "base/memory/scoped_ptr.h"
#include "cc/layer_tree_host_client.h"
+#include "skia/ext/refptr.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h"
+#include "third_party/skia/include/core/SkPicture.h"
jamesr 2013/01/11 21:53:26 don't include this header, forward declare SkPictu
Leandro Graciá Gil 2013/01/15 20:46:11 Done.
#include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
namespace cc {
@@ -30,6 +32,8 @@ public:
WEBKIT_COMPOSITOR_BINDINGS_EXPORT bool initialize(
const Settings&, scoped_ptr<cc::Thread> implThread);
+ WEBKIT_COMPOSITOR_BINDINGS_EXPORT skia::RefPtr<SkPicture> capturePicture();
jamesr 2013/01/11 21:53:26 why are you exposing this on WLTVI instead of just
Leandro Graciá Gil 2013/01/12 00:26:09 How else can we access cc::LayerTreeHost directly
+
// WebLayerTreeView implementation.
virtual void setSurfaceReady() OVERRIDE;
virtual void setRootLayer(const WebLayer&) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698