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/LayoutPoint.h" | 10 #include "platform/geometry/LayoutPoint.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 { | 62 { |
63 return adoptPtr(new DisplayItemList()); | 63 return adoptPtr(new DisplayItemList()); |
64 } | 64 } |
65 | 65 |
66 // These methods are called during paint invalidation. | 66 // These methods are called during paint invalidation. |
67 void invalidate(const DisplayItemClientWrapper&); | 67 void invalidate(const DisplayItemClientWrapper&); |
68 void invalidateUntracked(DisplayItemClient); | 68 void invalidateUntracked(DisplayItemClient); |
69 void invalidateAll(); | 69 void invalidateAll(); |
70 | 70 |
71 // Record when paint offsets change during paint. | 71 // Record when paint offsets change during paint. |
72 void invalidatePaintOffset(DisplayItemClient); | 72 void invalidatePaintOffset(const DisplayItemClientWrapper&); |
73 #if ENABLE(ASSERT) | 73 #if ENABLE(ASSERT) |
74 bool paintOffsetWasInvalidated(DisplayItemClient) const; | 74 bool paintOffsetWasInvalidated(DisplayItemClient) const; |
75 #endif | 75 #endif |
76 | 76 |
77 // Record a new paint offset. | 77 // Record a new paint offset. |
78 // TODO(pdr): Remove these once the paint offset cache is on LayoutObject. | 78 // TODO(pdr): Remove these once the paint offset cache is on LayoutObject. |
79 void recordPaintOffset(DisplayItemClient, const LayoutPoint&); | 79 void recordPaintOffset(DisplayItemClient, const LayoutPoint&); |
80 bool paintOffsetIsUnchanged(DisplayItemClient, const LayoutPoint&) const; | 80 bool paintOffsetIsUnchanged(DisplayItemClient, const LayoutPoint&) const; |
81 | 81 |
82 // These methods are called during painting. | 82 // These methods are called during painting. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // the duplicated ids are from. | 244 // the duplicated ids are from. |
245 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; | 245 DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient; |
246 #endif | 246 #endif |
247 | 247 |
248 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects; | 248 OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects; |
249 }; | 249 }; |
250 | 250 |
251 } // namespace blink | 251 } // namespace blink |
252 | 252 |
253 #endif // DisplayItemList_h | 253 #endif // DisplayItemList_h |
OLD | NEW |