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 CompositingInputsUpdater_h | 5 #ifndef CompositingInputsUpdater_h |
6 #define CompositingInputsUpdater_h | 6 #define CompositingInputsUpdater_h |
7 | 7 |
8 #include "core/layout/LayoutGeometryMap.h" | 8 #include "core/layout/LayoutGeometryMap.h" |
9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class PaintLayer; | 13 class PaintLayer; |
14 | 14 |
15 class CompositingInputsUpdater { | 15 class CompositingInputsUpdater { |
16 STACK_ALLOCATED(); | 16 STACK_ALLOCATED(); |
17 | 17 |
18 public: | 18 public: |
19 explicit CompositingInputsUpdater(PaintLayer* rootLayer); | 19 explicit CompositingInputsUpdater(PaintLayer* rootLayer); |
20 ~CompositingInputsUpdater(); | 20 ~CompositingInputsUpdater(); |
21 | 21 |
22 void update(); | 22 void update(); |
23 | 23 |
24 #if ENABLE(ASSERT) | 24 #if DCHECK_IS_ON() |
25 static void assertNeedsCompositingInputsUpdateBitsCleared(PaintLayer*); | 25 static void assertNeedsCompositingInputsUpdateBitsCleared(PaintLayer*); |
26 #endif | 26 #endif |
27 | 27 |
28 private: | 28 private: |
29 enum UpdateType { | 29 enum UpdateType { |
30 DoNotForceUpdate, | 30 DoNotForceUpdate, |
31 ForceUpdate, | 31 ForceUpdate, |
32 }; | 32 }; |
33 | 33 |
34 struct AncestorInfo { | 34 struct AncestorInfo { |
(...skipping 20 matching lines...) Expand all Loading... |
55 | 55 |
56 void updateRecursive(PaintLayer*, UpdateType, AncestorInfo); | 56 void updateRecursive(PaintLayer*, UpdateType, AncestorInfo); |
57 | 57 |
58 LayoutGeometryMap m_geometryMap; | 58 LayoutGeometryMap m_geometryMap; |
59 PaintLayer* m_rootLayer; | 59 PaintLayer* m_rootLayer; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace blink | 62 } // namespace blink |
63 | 63 |
64 #endif // CompositingInputsUpdater_h | 64 #endif // CompositingInputsUpdater_h |
OLD | NEW |