| 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 14 matching lines...) Expand all Loading... |
| 25 DrawingPaintPhaseFloat = 3, | 25 DrawingPaintPhaseFloat = 3, |
| 26 DrawingPaintPhaseForeground = 4, | 26 DrawingPaintPhaseForeground = 4, |
| 27 DrawingPaintPhaseOutline = 5, | 27 DrawingPaintPhaseOutline = 5, |
| 28 DrawingPaintPhaseChildOutlines = 6, | 28 DrawingPaintPhaseChildOutlines = 6, |
| 29 DrawingPaintPhaseSelfOutline = 7, | 29 DrawingPaintPhaseSelfOutline = 7, |
| 30 DrawingPaintPhaseSelection = 8, | 30 DrawingPaintPhaseSelection = 8, |
| 31 DrawingPaintPhaseCollapsedTableBorders = 9, | 31 DrawingPaintPhaseCollapsedTableBorders = 9, |
| 32 DrawingPaintPhaseTextClip = 10, | 32 DrawingPaintPhaseTextClip = 10, |
| 33 DrawingPaintPhaseMask = 11, | 33 DrawingPaintPhaseMask = 11, |
| 34 DrawingPaintPhaseClippingMask = 12, | 34 DrawingPaintPhaseClippingMask = 12, |
| 35 ClipLayerOverflowControls, | 35 ClipLayerOverflowControls = 13, |
| 36 ClipLayerBackground, | 36 ClipLayerBackground = 14, |
| 37 ClipLayerParent, | 37 ClipLayerParent = 15, |
| 38 ClipLayerFilter, | 38 ClipLayerFilter = 16, |
| 39 ClipLayerForeground, | 39 ClipLayerForeground = 17, |
| 40 ClipLayerFragmentFloat, | 40 ClipLayerFragmentFloat = 18, |
| 41 ClipLayerFragmentForeground, | 41 ClipLayerFragmentForeground = 19, |
| 42 ClipLayerFragmentChildOutline, | 42 ClipLayerFragmentChildOutline = 20, |
| 43 ClipLayerFragmentOutline, | 43 ClipLayerFragmentOutline = 21, |
| 44 ClipLayerFragmentMask, | 44 ClipLayerFragmentMask = 22, |
| 45 ClipLayerFragmentClippingMask, | 45 ClipLayerFragmentClippingMask = 23, |
| 46 ClipLayerFragmentParent, | 46 ClipLayerFragmentParent = 24, |
| 47 ClipLayerFragmentSelection, | 47 ClipLayerFragmentSelection = 25, |
| 48 ClipLayerFragmentChildBlockBackgrounds, | 48 ClipLayerFragmentChildBlockBackgrounds = 26, |
| 49 EndClip, | 49 EndClip = 27, |
| 50 BeginFilter, | 50 BeginFilter = 28, |
| 51 EndFilter, | 51 EndFilter = 29, |
| 52 TransparencyClip, | 52 BeginTransparency = 30, |
| 53 BeginTransparency, | 53 EndTransparency = 31, |
| 54 EndTransparency, | 54 ClipBoxChildBlockBackgrounds = 32, |
| 55 ClipBoxChildBlockBackgrounds, | 55 ClipBoxFloat = 33, |
| 56 ClipBoxFloat, | 56 ClipBoxForeground = 34, |
| 57 ClipBoxForeground, | 57 ClipBoxChildOutlines = 35, |
| 58 ClipBoxChildOutlines, | 58 ClipBoxSelection = 36, |
| 59 ClipBoxSelection, | 59 ClipBoxCollapsedTableBorders = 37, |
| 60 ClipBoxCollapsedTableBorders, | 60 ClipBoxTextClip = 38, |
| 61 ClipBoxTextClip, | 61 ClipBoxClippingMask = 39, |
| 62 ClipBoxClippingMask, | 62 BeginTransform = 40, |
| 63 BeginTransform, | 63 EndTransform = 41 |
| 64 EndTransform | |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 virtual ~DisplayItem() { } | 66 virtual ~DisplayItem() { } |
| 68 | 67 |
| 69 virtual void replay(GraphicsContext*) = 0; | 68 virtual void replay(GraphicsContext*) = 0; |
| 70 | 69 |
| 71 const RenderObject* renderer() const { return m_id.renderer; } | 70 const RenderObject* renderer() const { return m_id.renderer; } |
| 72 Type type() const { return m_id.type; } | 71 Type type() const { return m_id.type; } |
| 73 bool idsEqual(const DisplayItem& other) const { return m_id.renderer == othe
r.m_id.renderer && m_id.type == other.m_id.type; } | 72 bool idsEqual(const DisplayItem& other) const { return m_id.renderer == othe
r.m_id.renderer && m_id.type == other.m_id.type; } |
| 74 | 73 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 115 |
| 117 PaintList m_paintList; | 116 PaintList m_paintList; |
| 118 HashSet<const RenderObject*> m_paintListRenderers; | 117 HashSet<const RenderObject*> m_paintListRenderers; |
| 119 HashSet<const RenderObject*> m_invalidated; | 118 HashSet<const RenderObject*> m_invalidated; |
| 120 PaintList m_newPaints; | 119 PaintList m_newPaints; |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 } // namespace blink | 122 } // namespace blink |
| 124 | 123 |
| 125 #endif // ViewDisplayList_h | 124 #endif // ViewDisplayList_h |
| OLD | NEW |