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

Unified Diff: Source/platform/graphics/paint/SubtreeDisplayItem.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/SubtreeDisplayItem.cpp
diff --git a/Source/platform/graphics/paint/SubtreeDisplayItem.cpp b/Source/platform/graphics/paint/SubtreeDisplayItem.cpp
index bf1f849a1d26cdf8d53b1864aee7d937b34c3e5a..18b5e2482cf919ec04a181673d4aa479c6f3f9ca 100644
--- a/Source/platform/graphics/paint/SubtreeDisplayItem.cpp
+++ b/Source/platform/graphics/paint/SubtreeDisplayItem.cpp
@@ -5,4 +5,26 @@
#include "config.h"
#include "platform/graphics/paint/SubtreeDisplayItem.h"
-// Intentionally empty. Required when the create() functions are not inlined.
+#include "platform/graphics/paint/DisplayItems.h"
+
+namespace blink {
+
+void SubtreeCachedDisplayItem::appendByMoving(DisplayItems& destination)
+{
+ destination.emplaceBack<SubtreeCachedDisplayItem>(
+ DisplayItemClientWrapperHelper(*this), type());
+}
+
+void BeginSubtreeDisplayItem::appendByMoving(DisplayItems& destination)
+{
+ destination.emplaceBack<BeginSubtreeDisplayItem>(
+ DisplayItemClientWrapperHelper(*this), type());
+}
+
+void EndSubtreeDisplayItem::appendByMoving(DisplayItems& destination)
+{
+ destination.emplaceBack<EndSubtreeDisplayItem>(
+ DisplayItemClientWrapperHelper(*this), type());
+}
+
+} // namespace blink
« no previous file with comments | « Source/platform/graphics/paint/SubtreeDisplayItem.h ('k') | Source/platform/graphics/paint/Transform3DDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698