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

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

Issue 1192443003: [Slimming Paint] Blink-side contiguous allocation of display items. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: need a constructor with WTF_MAKE_NONCOPYABLE 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.cpp
diff --git a/Source/platform/graphics/paint/ClipPathDisplayItem.cpp b/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
index ca5b03852ba1d1e35c5e1def6e32105b15f3decb..ba2cea3ec95a7afdf175e7fcd5194ebbfca7995b 100644
--- a/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
+++ b/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
@@ -7,6 +7,7 @@
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/Path.h"
+#include "platform/graphics/paint/DisplayItems.h"
#include "public/platform/WebDisplayItemList.h"
#include "third_party/skia/include/core/SkScalar.h"
@@ -23,6 +24,12 @@ void BeginClipPathDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* li
list->appendClipPathItem(m_clipPath, SkRegion::kIntersect_Op, true);
}
+void BeginClipPathDisplayItem::appendByMoving(DisplayItems& destination)
+{
+ destination.emplaceBack<BeginClipPathDisplayItem>(
+ DisplayItemClientWrapperHelper(*this), m_clipPath);
+}
+
void EndClipPathDisplayItem::replay(GraphicsContext& context)
{
context.restore();
@@ -33,6 +40,12 @@ void EndClipPathDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* list
list->appendEndClipPathItem();
}
+void EndClipPathDisplayItem::appendByMoving(DisplayItems& destination)
+{
+ destination.emplaceBack<EndClipPathDisplayItem>(
+ DisplayItemClientWrapperHelper(*this));
+}
+
#ifndef NDEBUG
void BeginClipPathDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
« no previous file with comments | « Source/platform/graphics/paint/ClipPathDisplayItem.h ('k') | Source/platform/graphics/paint/ClipPathRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698