| 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 29 matching lines...) Expand all Loading... |
| 40 ClipLayerFragmentFloat = 18, | 40 ClipLayerFragmentFloat = 18, |
| 41 ClipLayerFragmentForeground = 19, | 41 ClipLayerFragmentForeground = 19, |
| 42 ClipLayerFragmentChildOutline = 20, | 42 ClipLayerFragmentChildOutline = 20, |
| 43 ClipLayerFragmentOutline = 21, | 43 ClipLayerFragmentOutline = 21, |
| 44 ClipLayerFragmentMask = 22, | 44 ClipLayerFragmentMask = 22, |
| 45 ClipLayerFragmentClippingMask = 23, | 45 ClipLayerFragmentClippingMask = 23, |
| 46 ClipLayerFragmentParent = 24, | 46 ClipLayerFragmentParent = 24, |
| 47 ClipLayerFragmentSelection = 25, | 47 ClipLayerFragmentSelection = 25, |
| 48 ClipLayerFragmentChildBlockBackgrounds = 26, | 48 ClipLayerFragmentChildBlockBackgrounds = 26, |
| 49 EndClip = 27, | 49 EndClip = 27, |
| 50 BeginFilter = 28, |
| 51 EndFilter = 29 |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 virtual ~DisplayItem() { } | 54 virtual ~DisplayItem() { } |
| 53 | 55 |
| 54 virtual void replay(GraphicsContext*) = 0; | 56 virtual void replay(GraphicsContext*) = 0; |
| 55 | 57 |
| 56 const RenderObject* renderer() const { return m_id.renderer; } | 58 const RenderObject* renderer() const { return m_id.renderer; } |
| 57 Type type() const { return m_id.type; } | 59 Type type() const { return m_id.type; } |
| 58 bool idsEqual(const DisplayItem& other) const { return m_id.renderer == othe
r.m_id.renderer && m_id.type == other.m_id.type; } | 60 bool idsEqual(const DisplayItem& other) const { return m_id.renderer == othe
r.m_id.renderer && m_id.type == other.m_id.type; } |
| 59 | 61 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 103 |
| 102 PaintList m_paintList; | 104 PaintList m_paintList; |
| 103 HashSet<const RenderObject*> m_paintListRenderers; | 105 HashSet<const RenderObject*> m_paintListRenderers; |
| 104 HashSet<const RenderObject*> m_invalidated; | 106 HashSet<const RenderObject*> m_invalidated; |
| 105 PaintList m_newPaints; | 107 PaintList m_newPaints; |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 } // namespace blink | 110 } // namespace blink |
| 109 | 111 |
| 110 #endif // ViewDisplayList_h | 112 #endif // ViewDisplayList_h |
| OLD | NEW |