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

Unified Diff: Source/platform/graphics/paint/ClipPathDisplayItem.h

Issue 1203343002: WIP for display item list backed by ListContainer Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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: Source/platform/graphics/paint/ClipPathDisplayItem.h
diff --git a/Source/platform/graphics/paint/ClipPathDisplayItem.h b/Source/platform/graphics/paint/ClipPathDisplayItem.h
index 23238873bad2711d33a550c99e3b3c282511c4d5..7b605b1f457bf30b00eddbb166723b0a7147cb4e 100644
--- a/Source/platform/graphics/paint/ClipPathDisplayItem.h
+++ b/Source/platform/graphics/paint/ClipPathDisplayItem.h
@@ -14,38 +14,24 @@
namespace blink {
class PLATFORM_EXPORT BeginClipPathDisplayItem : public PairedBeginDisplayItem {
- WTF_MAKE_FAST_ALLOCATED(BeginClipPathDisplayItem);
public:
- static PassOwnPtr<BeginClipPathDisplayItem> create(const DisplayItemClientWrapper& client, const Path& clipPath)
+ void setNew(const Path& clipPath)
{
- return adoptPtr(new BeginClipPathDisplayItem(client, clipPath));
+ m_clipPath = clipPath.skPath();
}
- BeginClipPathDisplayItem(const DisplayItemClientWrapper& client, const Path& clipPath)
- : PairedBeginDisplayItem(client, BeginClipPath)
- , m_clipPath(clipPath.skPath()) { }
-
virtual void replay(GraphicsContext&) override;
virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
private:
- const SkPath m_clipPath;
+ SkPath m_clipPath;
#ifndef NDEBUG
virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
#endif
};
class PLATFORM_EXPORT EndClipPathDisplayItem : public PairedEndDisplayItem {
- WTF_MAKE_FAST_ALLOCATED(EndClipPathDisplayItem);
public:
- static PassOwnPtr<EndClipPathDisplayItem> create(const DisplayItemClientWrapper& client)
- {
- return adoptPtr(new EndClipPathDisplayItem(client));
- }
-
- EndClipPathDisplayItem(const DisplayItemClientWrapper& client)
- : PairedEndDisplayItem(client, EndClipPath) { }
-
virtual void replay(GraphicsContext&) override;
virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
« no previous file with comments | « Source/platform/graphics/paint/ClipDisplayItem.h ('k') | Source/platform/graphics/paint/ClipPathRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698