| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/PaintArtifact.h" | 5 #include "platform/graphics/paint/PaintArtifact.h" |
| 6 | 6 |
| 7 #include "platform/TraceEvent.h" | 7 #include "platform/TraceEvent.h" |
| 8 #include "platform/geometry/IntRect.h" | 8 #include "platform/geometry/IntRect.h" |
| 9 #include "platform/graphics/paint/DrawingDisplayItem.h" | 9 #include "platform/graphics/paint/DrawingDisplayItem.h" |
| 10 #include "third_party/skia/include/core/SkRegion.h" | 10 #include "third_party/skia/include/core/SkRegion.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 for (const DisplayItem& displayItem : m_displayItemList) | 89 for (const DisplayItem& displayItem : m_displayItemList) |
| 90 displayItem.replay(graphicsContext); | 90 displayItem.replay(graphicsContext); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const | 93 void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const |
| 94 { | 94 { |
| 95 TRACE_EVENT0("blink,benchmark", "PaintArtifact::appendToWebDisplayItemList")
; | 95 TRACE_EVENT0("blink,benchmark", "PaintArtifact::appendToWebDisplayItemList")
; |
| 96 #if ENABLE(ASSERT) | 96 #if ENABLE(ASSERT) |
| 97 m_displayItemList.assertDisplayItemClientsAreAlive(); | 97 m_displayItemList.assertDisplayItemClientsAreAlive(); |
| 98 #endif | 98 #endif |
| 99 for (const DisplayItem& displayItem : m_displayItemList) { | 99 for (const DisplayItem& displayItem : m_displayItemList) |
| 100 IntRect visualRect = displayItem.client().visualRect(); | 100 displayItem.appendToWebDisplayItemList(displayItem.client().visualRect()
, list); |
| 101 displayItem.appendToWebDisplayItemList(visualRect, list); | |
| 102 } | |
| 103 } | 101 } |
| 104 | 102 |
| 105 } // namespace blink | 103 } // namespace blink |
| OLD | NEW |