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

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

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.h
diff --git a/sky/engine/core/painting/Picture.h b/sky/engine/core/painting/Picture.h
index f01e069f54d353899c3eaddc83fbbd9419f6786e..aeb3eaa5a7be90bcd55ff43bb960786c6bef4362 100644
--- a/sky/engine/core/painting/Picture.h
+++ b/sky/engine/core/painting/Picture.h
@@ -5,10 +5,10 @@
#ifndef SKY_ENGINE_CORE_PAINTING_PICTURE_H_
#define SKY_ENGINE_CORE_PAINTING_PICTURE_H_
-#include "sky/engine/platform/graphics/DisplayList.h"
#include "sky/engine/tonic/dart_wrappable.h"
#include "sky/engine/wtf/PassRefPtr.h"
#include "sky/engine/wtf/RefCounted.h"
+#include "third_party/skia/include/core/SkPicture.h"
namespace blink {
@@ -16,15 +16,14 @@ class Picture : public RefCounted<Picture>, public DartWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
~Picture() override;
- static PassRefPtr<Picture> create(PassRefPtr<DisplayList>);
+ static PassRefPtr<Picture> create(PassRefPtr<SkPicture> skPicture);
- SkPicture* toSkia() const { return m_displayList->picture(); }
- DisplayList* displayList() const { return m_displayList.get(); }
+ SkPicture* toSkia() const { return m_picture.get(); }
private:
- Picture(PassRefPtr<DisplayList>);
+ Picture(PassRefPtr<SkPicture> skPicture);
- RefPtr<DisplayList> m_displayList;
+ RefPtr<SkPicture> m_picture;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698