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" |
11 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class GraphicsContext; | 15 class GraphicsContext; |
16 class RenderObject; | 16 class RenderObject; |
17 class RenderLayer; | |
18 | 17 |
19 class DisplayItem { | 18 class DisplayItem { |
20 public: | 19 public: |
21 enum Type { | 20 enum Type { |
22 // DisplayItem types must be kept in sync with PaintPhase. | 21 // DisplayItem types must be kept in sync with PaintPhase. |
23 DrawingPaintPhaseBlockBackground = 0, | 22 DrawingPaintPhaseBlockBackground = 0, |
24 DrawingPaintPhaseChildBlockBackground = 1, | 23 DrawingPaintPhaseChildBlockBackground = 1, |
25 DrawingPaintPhaseChildBlockBackgrounds = 2, | 24 DrawingPaintPhaseChildBlockBackgrounds = 2, |
26 DrawingPaintPhaseFloat = 3, | 25 DrawingPaintPhaseFloat = 3, |
27 DrawingPaintPhaseForeground = 4, | 26 DrawingPaintPhaseForeground = 4, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 101 |
103 PaintList m_paintList; | 102 PaintList m_paintList; |
104 HashSet<const RenderObject*> m_paintListRenderers; | 103 HashSet<const RenderObject*> m_paintListRenderers; |
105 HashSet<const RenderObject*> m_invalidated; | 104 HashSet<const RenderObject*> m_invalidated; |
106 PaintList m_newPaints; | 105 PaintList m_newPaints; |
107 }; | 106 }; |
108 | 107 |
109 } // namespace blink | 108 } // namespace blink |
110 | 109 |
111 #endif // ViewDisplayList_h | 110 #endif // ViewDisplayList_h |
OLD | NEW |