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

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

Issue 1193433004: Blink-side contiguous allocation of display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ready for review 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

Powered by Google App Engine
This is Rietveld 408576698