| 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 "config.h" | 5 #include "config.h" |
| 6 #include "platform/graphics/paint/DisplayItemList.h" | 6 #include "platform/graphics/paint/DisplayItemList.h" |
| 7 | 7 |
| 8 #include "platform/NotImplemented.h" | 8 #include "platform/NotImplemented.h" |
| 9 #include "platform/TraceEvent.h" | 9 #include "platform/TraceEvent.h" |
| 10 #include "platform/graphics/GraphicsLayer.h" | 10 #include "platform/graphics/GraphicsLayer.h" |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 } | 570 } |
| 571 | 571 |
| 572 void DisplayItemList::showDebugData() const | 572 void DisplayItemList::showDebugData() const |
| 573 { | 573 { |
| 574 WTFLogAlways("current display items: [%s]\n", displayItemsAsDebugString(m_cu
rrentDisplayItems).utf8().data()); | 574 WTFLogAlways("current display items: [%s]\n", displayItemsAsDebugString(m_cu
rrentDisplayItems).utf8().data()); |
| 575 WTFLogAlways("new display items: [%s]\n", displayItemsAsDebugString(m_newDis
playItems).utf8().data()); | 575 WTFLogAlways("new display items: [%s]\n", displayItemsAsDebugString(m_newDis
playItems).utf8().data()); |
| 576 } | 576 } |
| 577 | 577 |
| 578 #endif // ifndef NDEBUG | 578 #endif // ifndef NDEBUG |
| 579 | 579 |
| 580 void DisplayItemList::replay(GraphicsContext& context) | 580 void DisplayItemList::replay(GraphicsContext& context) const |
| 581 { | 581 { |
| 582 TRACE_EVENT0("blink,benchmark", "DisplayItemList::replay"); | 582 TRACE_EVENT0("blink,benchmark", "DisplayItemList::replay"); |
| 583 ASSERT(m_newDisplayItems.isEmpty()); | 583 ASSERT(m_newDisplayItems.isEmpty()); |
| 584 for (DisplayItem& displayItem : m_currentDisplayItems) | 584 for (const DisplayItem& displayItem : m_currentDisplayItems) |
| 585 displayItem.replay(context); | 585 displayItem.replay(context); |
| 586 } | 586 } |
| 587 | 587 |
| 588 } // namespace blink | 588 } // namespace blink |
| OLD | NEW |