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

Unified Diff: Source/platform/graphics/paint/FloatClipDisplayItem.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/FloatClipDisplayItem.cpp
diff --git a/Source/platform/graphics/paint/FloatClipDisplayItem.cpp b/Source/platform/graphics/paint/FloatClipDisplayItem.cpp
index 619c1c0e0b731152eacb628d93082b04687b3816..6445ee8103cce19deffe44574c772082ac3ab43b 100644
--- a/Source/platform/graphics/paint/FloatClipDisplayItem.cpp
+++ b/Source/platform/graphics/paint/FloatClipDisplayItem.cpp
@@ -6,6 +6,7 @@
#include "platform/graphics/paint/FloatClipDisplayItem.h"
#include "platform/graphics/GraphicsContext.h"
+#include "platform/graphics/paint/DisplayItems.h"
#include "public/platform/WebDisplayItemList.h"
#include "third_party/skia/include/core/SkScalar.h"
@@ -22,6 +23,12 @@ void FloatClipDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* list)
list->appendFloatClipItem(m_clipRect);
}
+void FloatClipDisplayItem::appendByMoving(DisplayItems& destination)
+{
+ destination.emplaceBack<FloatClipDisplayItem>(
+ DisplayItemClientWrapperHelper(*this), type(), m_clipRect);
+}
+
void EndFloatClipDisplayItem::replay(GraphicsContext& context)
{
context.restore();
@@ -32,6 +39,12 @@ void EndFloatClipDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* lis
list->appendEndFloatClipItem();
}
+void EndFloatClipDisplayItem::appendByMoving(DisplayItems& destination)
+{
+ destination.emplaceBack<EndFloatClipDisplayItem>(
+ DisplayItemClientWrapperHelper(*this), type());
+}
+
#ifndef NDEBUG
void FloatClipDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
« no previous file with comments | « Source/platform/graphics/paint/FloatClipDisplayItem.h ('k') | Source/platform/graphics/paint/ScrollDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698