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

Unified Diff: Source/platform/graphics/paint/DrawingDisplayItem.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/DrawingDisplayItem.cpp
diff --git a/Source/platform/graphics/paint/DrawingDisplayItem.cpp b/Source/platform/graphics/paint/DrawingDisplayItem.cpp
index 0c75954da7a014ffb5b883a11726c1269459bf8e..bd36ac2572cd63667533432868a53112b973baab 100644
--- a/Source/platform/graphics/paint/DrawingDisplayItem.cpp
+++ b/Source/platform/graphics/paint/DrawingDisplayItem.cpp
@@ -6,6 +6,7 @@
#include "platform/graphics/paint/DrawingDisplayItem.h"
#include "platform/graphics/GraphicsContext.h"
+#include "platform/graphics/paint/DisplayItems.h"
#include "public/platform/WebDisplayItemList.h"
namespace blink {
@@ -22,6 +23,13 @@ void DrawingDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* list) co
list->appendDrawingItem(m_picture.get());
}
+void DrawingDisplayItem::appendByMoving(DisplayItems& destination)
+{
+ destination.emplaceBack<DrawingDisplayItem>(
+ DisplayItemClientWrapperHelper(*this),
+ type(), m_picture.release());
+}
+
bool DrawingDisplayItem::drawsContent() const
{
return m_picture;
« no previous file with comments | « Source/platform/graphics/paint/DrawingDisplayItem.h ('k') | Source/platform/graphics/paint/DrawingRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698