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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp

Issue 2328413002: Cleanups of PaintController (Closed)
Patch Set: Created 4 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 | « third_party/WebKit/Source/platform/graphics/paint/PaintController.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
index 60a818a51d108c4e1a2b17c304a2459d7c73b17f..055ec8df442bff0f3ade57a1c2526d0fac957418 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
@@ -737,7 +737,11 @@ String PaintController::displayItemListAsDebugString(const DisplayItemList& list
void PaintController::showDebugDataInternal(bool showPictures) const
{
+ // In NDEBUG mode we call DisplayItemClient::debugName() in displayItemListAsDebugString() which can only be called
+ // when we are sure the client is still alive. It's not suitable for m_currentPaintArtifact.getDisplayItemList().
+#ifndef NDEBUG
pdr. 2016/09/12 19:45:07 I'd prefer if this function didn't work completely
Xianzhu 2016/09/12 20:54:49 We can't enable liveness checking in release build
WTFLogAlways("current display item list: [%s]\n", displayItemListAsDebugString(m_currentPaintArtifact.getDisplayItemList(), showPictures).utf8().data());
+#endif
WTFLogAlways("new display item list: [%s]\n", displayItemListAsDebugString(m_newDisplayItemList, showPictures).utf8().data());
}
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698