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

Unified Diff: Source/platform/graphics/paint/FloatClipDisplayItem.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/FloatClipDisplayItem.h
diff --git a/Source/platform/graphics/paint/FloatClipDisplayItem.h b/Source/platform/graphics/paint/FloatClipDisplayItem.h
index 9aa0a866f4030b20d76e161964d14aba49b3ba0a..8aec5755fbbd504c787061da5b3d342a86ce0555 100644
--- a/Source/platform/graphics/paint/FloatClipDisplayItem.h
+++ b/Source/platform/graphics/paint/FloatClipDisplayItem.h
@@ -15,13 +15,7 @@ namespace blink {
class RoundedRect;
class PLATFORM_EXPORT FloatClipDisplayItem : public PairedBeginDisplayItem {
- WTF_MAKE_FAST_ALLOCATED(FloatClipDisplayItem);
public:
- static PassOwnPtr<FloatClipDisplayItem> create(const DisplayItemClientWrapper& client, Type type, const FloatRect& clipRect)
- {
- return adoptPtr(new FloatClipDisplayItem(client, type, clipRect));
- }
-
FloatClipDisplayItem(const DisplayItemClientWrapper& client, Type type, const FloatRect& clipRect)
: PairedBeginDisplayItem(client, type)
, m_clipRect(clipRect)
@@ -37,17 +31,11 @@ private:
virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
#endif
- FloatRect m_clipRect;
+ const FloatRect m_clipRect;
};
class PLATFORM_EXPORT EndFloatClipDisplayItem : public PairedEndDisplayItem {
- WTF_MAKE_FAST_ALLOCATED(EndFloatClipDisplayItem);
public:
- static PassOwnPtr<EndFloatClipDisplayItem> create(const DisplayItemClientWrapper& client, Type type)
- {
- return adoptPtr(new EndFloatClipDisplayItem(client, type));
- }
-
EndFloatClipDisplayItem(const DisplayItemClientWrapper& client, Type type)
: PairedEndDisplayItem(client, type)
{
« no previous file with comments | « Source/platform/graphics/paint/FixedPositionDisplayItem.h ('k') | Source/platform/graphics/paint/ScrollDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698