| 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/rendering/RenderGeometryMap.h" | 8 #include "core/rendering/RenderGeometryMap.h" |
| 9 | 9 |
| 10 namespace WebCore { | 10 namespace WebCore { |
| 11 | 11 |
| 12 class RenderLayer; | 12 class RenderLayer; |
| 13 | 13 |
| 14 class CompositingInputsUpdater { | 14 class CompositingInputsUpdater { |
| 15 public: | 15 public: |
| 16 explicit CompositingInputsUpdater(RenderLayer* rootRenderLayer); | 16 explicit CompositingInputsUpdater(RenderLayer* rootRenderLayer); |
| 17 ~CompositingInputsUpdater(); | 17 ~CompositingInputsUpdater(); |
| 18 | 18 |
| 19 void update(); | 19 void update(); |
| 20 | 20 |
| 21 #if ASSERT_ENABLED | 21 #if ENABLE(ASSERT) |
| 22 static void assertNeedsCompositingInputsUpdateBitsCleared(RenderLayer*); | 22 static void assertNeedsCompositingInputsUpdateBitsCleared(RenderLayer*); |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 enum UpdateType { | 26 enum UpdateType { |
| 27 DoNotForceUpdate, | 27 DoNotForceUpdate, |
| 28 ForceUpdate, | 28 ForceUpdate, |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 struct AncestorInfo { | 31 struct AncestorInfo { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 52 | 52 |
| 53 void updateRecursive(RenderLayer*, UpdateType, AncestorInfo); | 53 void updateRecursive(RenderLayer*, UpdateType, AncestorInfo); |
| 54 | 54 |
| 55 RenderGeometryMap m_geometryMap; | 55 RenderGeometryMap m_geometryMap; |
| 56 RenderLayer* m_rootRenderLayer; | 56 RenderLayer* m_rootRenderLayer; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace WebCore | 59 } // namespace WebCore |
| 60 | 60 |
| 61 #endif // CompositingInputsUpdater_h | 61 #endif // CompositingInputsUpdater_h |
| OLD | NEW |