Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: Source/core/paint/ViewDisplayList.h

Issue 744163002: Enable fast/images with slimming paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix compile Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 = 13, 35 ClipLayerOverflowControls,
36 ClipLayerBackground = 14, 36 ClipLayerBackground,
37 ClipLayerParent = 15, 37 ClipLayerParent,
38 ClipLayerFilter = 16, 38 ClipLayerFilter,
39 ClipLayerForeground = 17, 39 ClipLayerForeground,
40 ClipLayerFragmentFloat = 18, 40 ClipLayerFragmentFloat,
41 ClipLayerFragmentForeground = 19, 41 ClipLayerFragmentForeground,
42 ClipLayerFragmentChildOutline = 20, 42 ClipLayerFragmentChildOutline,
43 ClipLayerFragmentOutline = 21, 43 ClipLayerFragmentOutline,
44 ClipLayerFragmentMask = 22, 44 ClipLayerFragmentMask,
45 ClipLayerFragmentClippingMask = 23, 45 ClipLayerFragmentClippingMask,
46 ClipLayerFragmentParent = 24, 46 ClipLayerFragmentParent,
47 ClipLayerFragmentSelection = 25, 47 ClipLayerFragmentSelection,
48 ClipLayerFragmentChildBlockBackgrounds = 26, 48 ClipLayerFragmentChildBlockBackgrounds,
49 EndClip = 27, 49 EndClip,
50 BeginFilter = 28, 50 BeginFilter,
51 EndFilter = 29, 51 EndFilter,
52 BeginTransparency = 30, 52 TransparencyClip,
53 EndTransparency = 31, 53 BeginTransparency,
54 ClipBoxChildBlockBackgrounds = 32, 54 EndTransparency,
55 ClipBoxFloat = 33, 55 ClipBoxChildBlockBackgrounds,
56 ClipBoxForeground = 34, 56 ClipBoxFloat,
57 ClipBoxChildOutlines = 35, 57 ClipBoxForeground,
58 ClipBoxSelection = 36, 58 ClipBoxChildOutlines,
59 ClipBoxCollapsedTableBorders = 37, 59 ClipBoxSelection,
60 ClipBoxTextClip = 38, 60 ClipBoxCollapsedTableBorders,
61 ClipBoxClippingMask = 39, 61 ClipBoxTextClip,
62 BeginTransform = 40, 62 ClipBoxClippingMask,
63 EndTransform = 41 63 BeginTransform,
64 EndTransform
64 }; 65 };
65 66
66 virtual ~DisplayItem() { } 67 virtual ~DisplayItem() { }
67 68
68 virtual void replay(GraphicsContext*) = 0; 69 virtual void replay(GraphicsContext*) = 0;
69 70
70 const RenderObject* renderer() const { return m_id.renderer; } 71 const RenderObject* renderer() const { return m_id.renderer; }
71 Type type() const { return m_id.type; } 72 Type type() const { return 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; } 73 bool idsEqual(const DisplayItem& other) const { return m_id.renderer == othe r.m_id.renderer && m_id.type == other.m_id.type; }
73 74
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 116
116 PaintList m_paintList; 117 PaintList m_paintList;
117 HashSet<const RenderObject*> m_paintListRenderers; 118 HashSet<const RenderObject*> m_paintListRenderers;
118 HashSet<const RenderObject*> m_invalidated; 119 HashSet<const RenderObject*> m_invalidated;
119 PaintList m_newPaints; 120 PaintList m_newPaints;
120 }; 121 };
121 122
122 } // namespace blink 123 } // namespace blink
123 124
124 #endif // ViewDisplayList_h 125 #endif // ViewDisplayList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698