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

Unified Diff: sky/engine/core/painting/Picture.cpp

Issue 1190123003: Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia co… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebased version of previous patch Created 5 years, 6 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: sky/engine/core/painting/Picture.cpp
diff --git a/sky/engine/core/painting/Picture.cpp b/sky/engine/core/painting/Picture.cpp
index 1d96aa3a0e9deb84be32b591922f3070a7db6a80..4558009255585fc34e7f5cef370e1de714dec54f 100644
--- a/sky/engine/core/painting/Picture.cpp
+++ b/sky/engine/core/painting/Picture.cpp
@@ -9,14 +9,14 @@
namespace blink {
-PassRefPtr<Picture> Picture::create(PassRefPtr<DisplayList> list)
+PassRefPtr<Picture> Picture::create(PassRefPtr<SkPicture> skPicture)
{
- ASSERT(list);
- return adoptRef(new Picture(list));
+ ASSERT(skPicture);
+ return adoptRef(new Picture(skPicture));
}
-Picture::Picture(PassRefPtr<DisplayList> list)
- : m_displayList(list)
+Picture::Picture(PassRefPtr<SkPicture> skPicture)
+ : m_picture(skPicture)
{
}

Powered by Google App Engine
This is Rietveld 408576698