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 DisplayItemList_h | 5 #ifndef DisplayItemList_h |
6 #define DisplayItemList_h | 6 #define DisplayItemList_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/graphics/paint/DisplayItem.h" | 9 #include "platform/graphics/paint/DisplayItem.h" |
10 #include "wtf/HashSet.h" | 10 #include "wtf/HashSet.h" |
11 #include "wtf/PassOwnPtr.h" | 11 #include "wtf/PassOwnPtr.h" |
12 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class GraphicsContext; | 16 class GraphicsContext; |
17 | 17 |
18 typedef Vector<OwnPtr<DisplayItem> > PaintList; | 18 typedef Vector<OwnPtr<DisplayItem>> PaintList; |
19 | 19 |
20 class PLATFORM_EXPORT DisplayItemList { | 20 class PLATFORM_EXPORT DisplayItemList { |
21 WTF_MAKE_NONCOPYABLE(DisplayItemList); | 21 WTF_MAKE_NONCOPYABLE(DisplayItemList); |
22 public: | 22 public: |
23 static PassOwnPtr<DisplayItemList> create() { return adoptPtr(new DisplayIte
mList); } | 23 static PassOwnPtr<DisplayItemList> create() { return adoptPtr(new DisplayIte
mList); } |
24 | 24 |
25 const PaintList& paintList(); | 25 const PaintList& paintList(); |
26 void add(WTF::PassOwnPtr<DisplayItem>); | 26 void add(WTF::PassOwnPtr<DisplayItem>); |
27 | 27 |
28 void invalidate(DisplayItemClient); | 28 void invalidate(DisplayItemClient); |
(...skipping 20 matching lines...) Expand all Loading... |
49 #endif | 49 #endif |
50 | 50 |
51 PaintList m_paintList; | 51 PaintList m_paintList; |
52 HashSet<DisplayItemClient> m_cachedClients; | 52 HashSet<DisplayItemClient> m_cachedClients; |
53 PaintList m_newPaints; | 53 PaintList m_newPaints; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace blink | 56 } // namespace blink |
57 | 57 |
58 #endif // DisplayItemList_h | 58 #endif // DisplayItemList_h |
OLD | NEW |