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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h

Issue 1390123002: (WIP) Paint property hierarchy approach 1 of 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
index d1c1a69b7bb3894ae9843d3ee901d48ec25b6720..5f151141eb8539009a74536411d23571e708dad3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
@@ -60,6 +60,8 @@ class PLATFORM_EXPORT DisplayItemList {
WTF_MAKE_NONCOPYABLE(DisplayItemList);
WTF_MAKE_FAST_ALLOCATED(DisplayItemList);
public:
+ // TODO(pdr): With PaintArtifact, this class does not need to be heap
+ // allocated. We should refactor callers to use the constructor directly.
static PassOwnPtr<DisplayItemList> create()
{
return adoptPtr(new DisplayItemList());
@@ -190,7 +192,6 @@ public:
m_clientsCheckedPaintInvalidation.add(client);
}
-protected:
DisplayItemList()
: m_currentDisplayItems(0)
, m_newDisplayItems(kInitialDisplayItemsCapacity * kMaximumDisplayItemSize)

Powered by Google App Engine
This is Rietveld 408576698