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

Unified Diff: Source/platform/graphics/paint/SubtreeDisplayItem.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/SubtreeDisplayItem.h
diff --git a/Source/platform/graphics/paint/SubtreeDisplayItem.h b/Source/platform/graphics/paint/SubtreeDisplayItem.h
index efddb5edab88a954e084b6139d750d0964461f53..e78d90628795df72412db22512eb26f656a433c4 100644
--- a/Source/platform/graphics/paint/SubtreeDisplayItem.h
+++ b/Source/platform/graphics/paint/SubtreeDisplayItem.h
@@ -12,14 +12,7 @@
namespace blink {
class PLATFORM_EXPORT SubtreeCachedDisplayItem : public DisplayItem {
- WTF_MAKE_FAST_ALLOCATED(SubtreeCachedDisplayItem);
public:
- static PassOwnPtr<SubtreeCachedDisplayItem> create(const DisplayItemClientWrapper& client, Type type)
- {
- return adoptPtr(new SubtreeCachedDisplayItem(client, type));
- }
-
-private:
SubtreeCachedDisplayItem(const DisplayItemClientWrapper& client, Type type)
: DisplayItem(client, type)
{
@@ -31,14 +24,7 @@ private:
};
class PLATFORM_EXPORT BeginSubtreeDisplayItem : public PairedBeginDisplayItem {
- WTF_MAKE_FAST_ALLOCATED(BeginSubtreeDisplayItem);
public:
- static PassOwnPtr<BeginSubtreeDisplayItem> create(const DisplayItemClientWrapper& client, Type type)
- {
- return adoptPtr(new BeginSubtreeDisplayItem(client, type));
- }
-
-private:
BeginSubtreeDisplayItem(const DisplayItemClientWrapper& client, Type type)
: PairedBeginDisplayItem(client, type)
{
@@ -47,14 +33,7 @@ private:
};
class PLATFORM_EXPORT EndSubtreeDisplayItem : public PairedEndDisplayItem {
- WTF_MAKE_FAST_ALLOCATED(EndSubtreeDisplayItem);
public:
- static PassOwnPtr<EndSubtreeDisplayItem> create(const DisplayItemClientWrapper& client, Type type)
- {
- return adoptPtr(new EndSubtreeDisplayItem(client, type));
- }
-
-private:
EndSubtreeDisplayItem(const DisplayItemClientWrapper& client, Type type)
: PairedEndDisplayItem(client, type)
{
« no previous file with comments | « Source/platform/graphics/paint/ScrollDisplayItem.h ('k') | Source/platform/graphics/paint/Transform3DDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698