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

Unified Diff: Source/platform/graphics/paint/DisplayItemTransformTreeBuilderTest.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/DisplayItemTransformTreeBuilderTest.cpp
diff --git a/Source/platform/graphics/paint/DisplayItemTransformTreeBuilderTest.cpp b/Source/platform/graphics/paint/DisplayItemTransformTreeBuilderTest.cpp
index aeff937d83552c99d243ce8be0cdf6f8749fd0f1..2f1e3e9c61bbc7aca1dac3d61f394a9547569cdd 100644
--- a/Source/platform/graphics/paint/DisplayItemTransformTreeBuilderTest.cpp
+++ b/Source/platform/graphics/paint/DisplayItemTransformTreeBuilderTest.cpp
@@ -8,6 +8,7 @@
#include "platform/graphics/paint/DisplayItem.h"
#include "platform/graphics/paint/DisplayItemClient.h"
#include "platform/graphics/paint/DisplayItemTransformTree.h"
+#include "platform/graphics/paint/DisplayItems.h"
#include "platform/graphics/paint/Transform3DDisplayItem.h"
#include "platform/transforms/TransformTestHelper.h"
#include "platform/transforms/TransformationMatrix.h"
@@ -27,8 +28,15 @@ struct DummyClient {
class DummyDisplayItem : public DisplayItem {
public:
static PassOwnPtr<DummyDisplayItem> create(const DummyClient& client) { return adoptPtr(new DummyDisplayItem(client)); }
+ DummyDisplayItem(const DummyClient& client) : DisplayItem(client, DisplayItem::DrawingFirst), m_dummyClient(client) { }
+
+ void appendByMoving(DisplayItems& destination) override
+ {
+ destination.emplaceBack<DummyDisplayItem>(m_dummyClient);
+ }
+
private:
- DummyDisplayItem(const DummyClient& client) : DisplayItem(client, DisplayItem::DrawingFirst) { }
+ const DummyClient& m_dummyClient;
};
class DisplayItemTransformTreeBuilderTest : public ::testing::Test {
« no previous file with comments | « Source/platform/graphics/paint/DisplayItemListTest.cpp ('k') | Source/platform/graphics/paint/DisplayItems.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698