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

Unified Diff: Source/platform/graphics/paint/DrawingDisplayItem.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
« no previous file with comments | « Source/platform/graphics/paint/DisplayItems.cpp ('k') | Source/platform/graphics/paint/DrawingRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DrawingDisplayItem.h
diff --git a/Source/platform/graphics/paint/DrawingDisplayItem.h b/Source/platform/graphics/paint/DrawingDisplayItem.h
index 8b4b46674c109145df0a46bb5dafe0cb9d1e0305..0432462b0d0d1a1616d11b7b9875cec9355be3f1 100644
--- a/Source/platform/graphics/paint/DrawingDisplayItem.h
+++ b/Source/platform/graphics/paint/DrawingDisplayItem.h
@@ -22,36 +22,19 @@ public:
};
#endif
- static PassOwnPtr<DrawingDisplayItem> create(const DisplayItemClientWrapper& client
- , Type type
- , PassRefPtr<const SkPicture> picture
-#if ENABLE(ASSERT)
- , UnderInvalidationCheckingMode underInvalidationCheckingMode = CheckPicture
-#endif
- )
- {
- return adoptPtr(new DrawingDisplayItem(client
- , type
- , picture
-#if ENABLE(ASSERT)
- , underInvalidationCheckingMode
-#endif
- ));
- }
-
DrawingDisplayItem(const DisplayItemClientWrapper& client
, Type type
, PassRefPtr<const SkPicture> picture
#if ENABLE(ASSERT)
- , UnderInvalidationCheckingMode underInvalidationCheckingMode
+ , UnderInvalidationCheckingMode underInvalidationCheckingMode = CheckPicture
#endif
)
: DisplayItem(client, type)
, m_picture(picture && picture->approximateOpCount() ? picture : nullptr)
- {
#if ENABLE(ASSERT)
- m_underInvalidationCheckingMode = underInvalidationCheckingMode;
+ , m_underInvalidationCheckingMode(underInvalidationCheckingMode)
#endif
+ {
ASSERT(isDrawingType(type));
}
« no previous file with comments | « Source/platform/graphics/paint/DisplayItems.cpp ('k') | Source/platform/graphics/paint/DrawingRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698