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

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

Issue 1183023002: SP: Add debugging output when CachedDisplayItem lookup fails. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DisplayItemList.cpp
diff --git a/Source/platform/graphics/paint/DisplayItemList.cpp b/Source/platform/graphics/paint/DisplayItemList.cpp
index dae6cd5c1385389b47c9f28deebf01c36ae6242c..ecff614061bf8af43a29f071b3b0343024db4298 100644
--- a/Source/platform/graphics/paint/DisplayItemList.cpp
+++ b/Source/platform/graphics/paint/DisplayItemList.cpp
@@ -264,6 +264,13 @@ void DisplayItemList::commitNewDisplayItems()
DisplayItems::Iterator foundIt = findOutOfOrderCachedItem(currentIt, newDisplayItem.id(), matchingType, displayItemIndicesByClient);
isSynchronized = (foundIt == currentIt);
+#ifndef NDEBUG
+ if (foundIt == currentEnd) {
+ showDebugData();
+ WTFLogAlways("CachedDisplayItem %s not found in m_currentDisplayItems\n",
+ newDisplayItem.asDebugString().utf8().data());
+ }
+#endif
// TODO(chrishtr): downgrade to ASSERT as this goes to beta users, and replace with bailing out of the rest of the merge.
// This assert hits if we couldn't find the cached display item in our cache, which should be impossible.
RELEASE_ASSERT(foundIt != currentEnd);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698