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

Unified Diff: Source/platform/graphics/paint/DrawingRecorder.cpp

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
« no previous file with comments | « Source/platform/graphics/paint/DisplayItemListTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DrawingRecorder.cpp
diff --git a/Source/platform/graphics/paint/DrawingRecorder.cpp b/Source/platform/graphics/paint/DrawingRecorder.cpp
index 3d9887588f8b162107d3bd085ed33ba00d1c0eb2..94b5da5690f851e1db5e30f3d681d5ef4481b626 100644
--- a/Source/platform/graphics/paint/DrawingRecorder.cpp
+++ b/Source/platform/graphics/paint/DrawingRecorder.cpp
@@ -37,7 +37,7 @@ DrawingRecorder::DrawingRecorder(GraphicsContext& context, const DisplayItemClie
, m_displayItemClient(displayItemClient)
, m_displayItemType(displayItemType)
#if ENABLE(ASSERT)
- , m_displayItemPosition(RuntimeEnabledFeatures::slimmingPaintEnabled() ? m_context.displayItemList()->newDisplayItemsSize() : 0)
+ , m_displayItemPosition(RuntimeEnabledFeatures::slimmingPaintEnabled() ? m_context.displayItemList()->newDisplayItems().size() : 0)
, m_underInvalidationCheckingMode(DrawingDisplayItem::CheckPicture)
#endif
{
@@ -91,7 +91,7 @@ DrawingRecorder::~DrawingRecorder()
m_context.restore();
m_context.setInDrawingRecorder(false);
- ASSERT(m_displayItemPosition == m_context.displayItemList()->newDisplayItemsSize());
+ ASSERT(m_displayItemPosition == m_context.displayItemList()->newDisplayItems().size());
#endif
m_context.displayItemList()->createAndAppend<DrawingDisplayItem>(m_displayItemClient
« no previous file with comments | « Source/platform/graphics/paint/DisplayItemListTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698