Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/graphics/paint/PaintController.h" | 5 #include "platform/graphics/paint/PaintController.h" |
| 6 | 6 |
| 7 #include "platform/TraceEvent.h" | 7 #include "platform/TraceEvent.h" |
| 8 #include "platform/graphics/GraphicsLayer.h" | 8 #include "platform/graphics/GraphicsLayer.h" |
| 9 #include "platform/graphics/paint/DrawingDisplayItem.h" | 9 #include "platform/graphics/paint/DrawingDisplayItem.h" |
| 10 #include "third_party/skia/include/core/SkPictureAnalyzer.h" | 10 #include "third_party/skia/include/core/SkPictureAnalyzer.h" |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 730 visualRect.x(), visualRect.y(), | 730 visualRect.x(), visualRect.y(), |
| 731 visualRect.width(), visualRect.height())); | 731 visualRect.width(), visualRect.height())); |
| 732 } | 732 } |
| 733 stringBuilder.append('}'); | 733 stringBuilder.append('}'); |
| 734 } | 734 } |
| 735 return stringBuilder.toString(); | 735 return stringBuilder.toString(); |
| 736 } | 736 } |
| 737 | 737 |
| 738 void PaintController::showDebugDataInternal(bool showPictures) const | 738 void PaintController::showDebugDataInternal(bool showPictures) const |
| 739 { | 739 { |
| 740 // In NDEBUG mode we call DisplayItemClient::debugName() in displayItemListA sDebugString() which can only be called | |
| 741 // when we are sure the client is still alive. It's not suitable for m_curre ntPaintArtifact.getDisplayItemList(). | |
| 742 #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
| |
| 740 WTFLogAlways("current display item list: [%s]\n", displayItemListAsDebugStri ng(m_currentPaintArtifact.getDisplayItemList(), showPictures).utf8().data()); | 743 WTFLogAlways("current display item list: [%s]\n", displayItemListAsDebugStri ng(m_currentPaintArtifact.getDisplayItemList(), showPictures).utf8().data()); |
| 744 #endif | |
| 741 WTFLogAlways("new display item list: [%s]\n", displayItemListAsDebugString(m _newDisplayItemList, showPictures).utf8().data()); | 745 WTFLogAlways("new display item list: [%s]\n", displayItemListAsDebugString(m _newDisplayItemList, showPictures).utf8().data()); |
| 742 } | 746 } |
| 743 | 747 |
| 744 } // namespace blink | 748 } // namespace blink |
| OLD | NEW |