| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 addItemToIndexIfNeeded(displayItem, m_newDisplayItems.size() - 1, m_newDispl
ayItemIndicesByClient); | 92 addItemToIndexIfNeeded(displayItem, m_newDisplayItems.size() - 1, m_newDispl
ayItemIndicesByClient); |
| 93 #endif // ENABLE(ASSERT) | 93 #endif // ENABLE(ASSERT) |
| 94 | 94 |
| 95 if (skippingCache()) | 95 if (skippingCache()) |
| 96 displayItem.setSkippedCache(); | 96 displayItem.setSkippedCache(); |
| 97 | 97 |
| 98 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) | 98 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) |
| 99 m_newPaintChunks.incrementDisplayItemIndex(); | 99 m_newPaintChunks.incrementDisplayItemIndex(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void DisplayItemList::updateCurrentPaintProperties(const PaintProperties& newPai
ntProperties) | 102 void DisplayItemList::updateCurrentPaintChunkProperties(const PaintChunkProperti
es& newProperties) |
| 103 { | 103 { |
| 104 m_newPaintChunks.updateCurrentPaintProperties(newPaintProperties); | 104 m_newPaintChunks.updateCurrentPaintChunkProperties(newProperties); |
| 105 } | 105 } |
| 106 | 106 |
| 107 void DisplayItemList::beginScope() | 107 void DisplayItemList::beginScope() |
| 108 { | 108 { |
| 109 ASSERT_WITH_SECURITY_IMPLICATION(m_nextScope < UINT_MAX); | 109 ASSERT_WITH_SECURITY_IMPLICATION(m_nextScope < UINT_MAX); |
| 110 m_scopeStack.append(m_nextScope++); | 110 m_scopeStack.append(m_nextScope++); |
| 111 beginSkippingCache(); | 111 beginSkippingCache(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void DisplayItemList::endScope() | 114 void DisplayItemList::endScope() |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 | 579 |
| 580 void DisplayItemList::replay(GraphicsContext& context) | 580 void DisplayItemList::replay(GraphicsContext& context) |
| 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 (DisplayItem& displayItem : m_currentDisplayItems) |
| 585 displayItem.replay(context); | 585 displayItem.replay(context); |
| 586 } | 586 } |
| 587 | 587 |
| 588 } // namespace blink | 588 } // namespace blink |
| OLD | NEW |