| 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 #ifndef DisplayItemList_h | 5 #ifndef DisplayItemList_h |
| 6 #define DisplayItemList_h | 6 #define DisplayItemList_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/RuntimeEnabledFeatures.h" | 9 #include "platform/RuntimeEnabledFeatures.h" |
| 10 #include "platform/geometry/IntRect.h" | 10 #include "platform/geometry/IntRect.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 void copyCachedSubsequence(DisplayItems::iterator& currentIt, DisplayItems&
updatedList); | 231 void copyCachedSubsequence(DisplayItems::iterator& currentIt, DisplayItems&
updatedList); |
| 232 | 232 |
| 233 #if ENABLE(ASSERT) | 233 #if ENABLE(ASSERT) |
| 234 // The following two methods are for checking under-invalidations | 234 // The following two methods are for checking under-invalidations |
| 235 // (when RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabl
ed). | 235 // (when RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabl
ed). |
| 236 void checkUnderInvalidation(DisplayItems::iterator& newIt, DisplayItems::ite
rator& currentIt); | 236 void checkUnderInvalidation(DisplayItems::iterator& newIt, DisplayItems::ite
rator& currentIt); |
| 237 void checkCachedDisplayItemIsUnchanged(const char* messagePrefix, const Disp
layItem& newItem, const DisplayItem& oldItem); | 237 void checkCachedDisplayItemIsUnchanged(const char* messagePrefix, const Disp
layItem& newItem, const DisplayItem& oldItem); |
| 238 void checkNoRemainingCachedDisplayItems(); | 238 void checkNoRemainingCachedDisplayItems(); |
| 239 #endif | 239 #endif |
| 240 | 240 |
| 241 void replay(GraphicsContext&); | 241 void replay(GraphicsContext&) const; |
| 242 | 242 |
| 243 DisplayItems m_currentDisplayItems; | 243 DisplayItems m_currentDisplayItems; |
| 244 DisplayItems m_newDisplayItems; | 244 DisplayItems m_newDisplayItems; |
| 245 | 245 |
| 246 // In Slimming Paint v2, paint properties (e.g. transform) useful for | 246 // In Slimming Paint v2, paint properties (e.g. transform) useful for |
| 247 // compositing are stored in corresponding paint chunks instead of in the | 247 // compositing are stored in corresponding paint chunks instead of in the |
| 248 // display items. | 248 // display items. |
| 249 Vector<PaintChunk> m_currentPaintChunks; | 249 Vector<PaintChunk> m_currentPaintChunks; |
| 250 PaintChunker m_newPaintChunks; | 250 PaintChunker m_newPaintChunks; |
| 251 | 251 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // the duplicated ids are from. | 294 // the duplicated ids are from. |
| 295 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; | 295 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; |
| 296 #endif | 296 #endif |
| 297 | 297 |
| 298 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects; | 298 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects; |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 } // namespace blink | 301 } // namespace blink |
| 302 | 302 |
| 303 #endif // DisplayItemList_h | 303 #endif // DisplayItemList_h |
| OLD | NEW |