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

Unified Diff: cc/layers/layer.h

Issue 23049007: Implemented printToSkPicture without using WebViewBenchmarkSupport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 1643817773798a7a19bc8ab93b1e140eaa04146b..868777c23290f06b0d11cbd34b1d1cdfb3a7633b 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -26,6 +26,7 @@
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkImageFilter.h"
+#include "third_party/skia/include/core/SkPicture.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/rect_f.h"
#include "ui/gfx/transform.h"
@@ -370,6 +371,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
// Returns true if anything in this tree blocksPendingCommit.
bool BlocksPendingCommitRecursive() const;
+ virtual skia::RefPtr<SkPicture> GetPicture() const;
+
virtual bool CanClipSelf() const;
// Constructs a LayerImpl of the correct runtime type for this Layer type.
« cc/layers/content_layer.cc ('K') | « cc/layers/content_layer.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698