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 ViewDisplayList_h | 5 #ifndef ViewDisplayList_h |
6 #define ViewDisplayList_h | 6 #define ViewDisplayList_h |
7 | 7 |
8 #include "core/rendering/PaintPhase.h" | 8 #include "core/rendering/PaintPhase.h" |
9 #include "wtf/HashSet.h" | 9 #include "wtf/HashSet.h" |
10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 const PaintList& paintList(); | 87 const PaintList& paintList(); |
88 void add(WTF::PassOwnPtr<DisplayItem>); | 88 void add(WTF::PassOwnPtr<DisplayItem>); |
89 void invalidate(const RenderObject*); | 89 void invalidate(const RenderObject*); |
90 | 90 |
91 #ifndef NDEBUG | 91 #ifndef NDEBUG |
92 void showDebugData() const; | 92 void showDebugData() const; |
93 #endif | 93 #endif |
94 | 94 |
95 private: | 95 private: |
96 bool isRepaint(PaintList::iterator, const DisplayItem&); | 96 PaintList::iterator wasUninvalidatedRepaint(PaintList::iterator, const Displ
ayItem&); |
97 // Update m_paintList with any invalidations or new paints. | 97 bool wasInvalidated(const DisplayItem&) const; |
98 void updatePaintList(); | 98 void updatePaintList(); |
99 | 99 |
100 PaintList m_paintList; | 100 PaintList m_paintList; |
| 101 HashSet<const RenderObject*> m_paintListRenderers; |
101 HashSet<const RenderObject*> m_invalidated; | 102 HashSet<const RenderObject*> m_invalidated; |
102 PaintList m_newPaints; | 103 PaintList m_newPaints; |
103 }; | 104 }; |
104 | 105 |
105 } // namespace blink | 106 } // namespace blink |
106 | 107 |
107 #endif // ViewDisplayList_h | 108 #endif // ViewDisplayList_h |
OLD | NEW |