| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 const PaintList& paintList(); | 90 const PaintList& paintList(); |
| 91 void add(WTF::PassOwnPtr<DisplayItem>); | 91 void add(WTF::PassOwnPtr<DisplayItem>); |
| 92 void invalidate(const RenderObject*); | 92 void invalidate(const RenderObject*); |
| 93 | 93 |
| 94 #ifndef NDEBUG | 94 #ifndef NDEBUG |
| 95 void showDebugData() const; | 95 void showDebugData() const; |
| 96 #endif | 96 #endif |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 bool isRepaint(PaintList::iterator, const DisplayItem&); | 99 PaintList::iterator findDisplayItem(PaintList::iterator, const DisplayItem&)
; |
| 100 // Update m_paintList with any invalidations or new paints. | 100 bool wasInvalidated(const DisplayItem&) const; |
| 101 void updatePaintList(); | 101 void updatePaintList(); |
| 102 | 102 |
| 103 PaintList m_paintList; | 103 PaintList m_paintList; |
| 104 HashSet<const RenderObject*> m_paintListRenderers; |
| 104 HashSet<const RenderObject*> m_invalidated; | 105 HashSet<const RenderObject*> m_invalidated; |
| 105 PaintList m_newPaints; | 106 PaintList m_newPaints; |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 } // namespace blink | 109 } // namespace blink |
| 109 | 110 |
| 110 #endif // ViewDisplayList_h | 111 #endif // ViewDisplayList_h |
| OLD | NEW |