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

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

Issue 1323243011: Add DisplayItemList::newDisplayItems() and cleanup tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/DisplayItemList.h
diff --git a/Source/platform/graphics/paint/DisplayItemList.h b/Source/platform/graphics/paint/DisplayItemList.h
index b154bda9bad26771a827f50b0fdf25a8e85f500a..4126bece86a415ad7c2062eeffd2a1dac7dd2a49 100644
--- a/Source/platform/graphics/paint/DisplayItemList.h
+++ b/Source/platform/graphics/paint/DisplayItemList.h
@@ -134,9 +134,9 @@ public:
bool displayItemConstructionIsDisabled() const { return m_constructionDisabled; }
void setDisplayItemConstructionIsDisabled(const bool disable) { m_constructionDisabled = disable; }
-#if ENABLE(ASSERT)
- size_t newDisplayItemsSize() const { return m_newDisplayItems.size(); }
-#endif
+ // Returns displayItems added using createAndAppend() since beginning or the last
+ // commitNewDisplayItems(). Use with care.
+ DisplayItems& newDisplayItems() { return m_newDisplayItems; }
#ifndef NDEBUG
void showDebugData() const;
@@ -169,12 +169,6 @@ protected:
, m_nextScope(1) { }
private:
- friend class DisplayItemListTest;
- friend class DisplayItemListPaintTest;
- friend class DisplayItemListPaintTestForSlimmingPaintV2;
- friend class LayoutObjectDrawingRecorderTest;
- friend class LayoutObjectDrawingRecorderTestForSlimmingPaintV2;
-
// Set new item state (scopes, cache skipping, etc) for a new item.
void processNewItem(DisplayItem&);
« no previous file with comments | « Source/core/paint/LayoutObjectDrawingRecorderTest.cpp ('k') | Source/platform/graphics/paint/DisplayItemListTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698