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

Unified Diff: Source/platform/graphics/paint/Transform3DDisplayItem.h

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/Transform3DDisplayItem.h
diff --git a/Source/platform/graphics/paint/Transform3DDisplayItem.h b/Source/platform/graphics/paint/Transform3DDisplayItem.h
index e9ef6bf7718bd3fa7c69f942396121db6f47f31e..9015a8a2276377814d7e99b48f67e8987b470464 100644
--- a/Source/platform/graphics/paint/Transform3DDisplayItem.h
+++ b/Source/platform/graphics/paint/Transform3DDisplayItem.h
@@ -13,14 +13,8 @@
namespace blink {
class PLATFORM_EXPORT BeginTransform3DDisplayItem : public PairedBeginDisplayItem {
- WTF_MAKE_FAST_ALLOCATED(BeginTransform3DDisplayItem);
public:
- static PassOwnPtr<BeginTransform3DDisplayItem> create(const DisplayItemClientWrapper& client, DisplayItem::Type type, const TransformationMatrix& transform)
- {
- return adoptPtr(new BeginTransform3DDisplayItem(client, type, transform));
- }
-
- BeginTransform3DDisplayItem(const DisplayItemClientWrapper& client, DisplayItem::Type type, const TransformationMatrix& transform)
+ BeginTransform3DDisplayItem(const DisplayItemClientWrapper& client, Type type, const TransformationMatrix& transform)
: PairedBeginDisplayItem(client, type)
, m_transform(transform)
{
@@ -37,14 +31,8 @@ private:
};
class PLATFORM_EXPORT EndTransform3DDisplayItem : public PairedEndDisplayItem {
- WTF_MAKE_FAST_ALLOCATED(EndTransform3DDisplayItem);
public:
- static PassOwnPtr<EndTransform3DDisplayItem> create(const DisplayItemClientWrapper& client, DisplayItem::Type type)
- {
- return adoptPtr(new EndTransform3DDisplayItem(client, type));
- }
-
- EndTransform3DDisplayItem(const DisplayItemClientWrapper& client, DisplayItem::Type type)
+ EndTransform3DDisplayItem(const DisplayItemClientWrapper& client, Type type)
: PairedEndDisplayItem(client, type)
{
ASSERT(DisplayItem::isEndTransform3DType(type));
« no previous file with comments | « Source/platform/graphics/paint/SubtreeDisplayItem.h ('k') | Source/platform/graphics/paint/TransformDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698