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

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

Issue 1193433004: Blink-side contiguous allocation of display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add ListContainer::AllocateAndConstructWithArguments and a TODO in DisplayItemList::findMatchingIte… 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..2aae934685c189cad862d74c9ce72bcc0cf7e57f 100644
--- a/Source/platform/graphics/paint/DisplayItemTransformTreeBuilderTest.cpp
+++ b/Source/platform/graphics/paint/DisplayItemTransformTreeBuilderTest.cpp
@@ -26,8 +26,6 @@ struct DummyClient {
class DummyDisplayItem : public DisplayItem {
public:
- static PassOwnPtr<DummyDisplayItem> create(const DummyClient& client) { return adoptPtr(new DummyDisplayItem(client)); }
-private:
DummyDisplayItem(const DummyClient& client) : DisplayItem(client, DisplayItem::DrawingFirst) { }
};
@@ -37,16 +35,16 @@ protected:
void processDisplayItem(const DisplayItem& displayItem) { m_builder.processDisplayItem(displayItem); }
void processDisplayItem(PassOwnPtr<DisplayItem> displayItem) { processDisplayItem(*displayItem); }
- void processDummyDisplayItem() { processDisplayItem(DummyDisplayItem::create(newDummyClient())); }
+ void processDummyDisplayItem() { processDisplayItem(DummyDisplayItem(newDummyClient())); }
const DummyClient& processBeginTransform3D(const TransformationMatrix& transform)
{
const DummyClient& client = newDummyClient();
- processDisplayItem(BeginTransform3DDisplayItem::create(client, DisplayItem::Transform3DElementTransform, transform));
+ processDisplayItem(BeginTransform3DDisplayItem(client, DisplayItem::Transform3DElementTransform, transform));
return client;
}
void processEndTransform3D(const DummyClient& client)
{
- processDisplayItem(EndTransform3DDisplayItem::create(client, DisplayItem::transform3DTypeToEndTransform3DType(DisplayItem::Transform3DElementTransform)));
+ processDisplayItem(EndTransform3DDisplayItem(client, DisplayItem::transform3DTypeToEndTransform3DType(DisplayItem::Transform3DElementTransform)));
}
private:
« 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