OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CompositorMutableProperties_h | 5 #ifndef CompositorMutableProperties_h |
6 #define CompositorMutableProperties_h | 6 #define CompositorMutableProperties_h |
7 | 7 |
| 8 #include <unordered_map> |
8 #include "cc/trees/mutable_properties.h" | 9 #include "cc/trees/mutable_properties.h" |
| 10 #include "third_party/skia/include/core/SkMatrix44.h" |
9 | 11 |
10 namespace blink { | 12 namespace blink { |
11 | 13 |
12 using CompositorMutableProperty = cc::MutableProperty; | 14 using CompositorMutableProperty = cc::MutableProperty; |
13 | 15 |
| 16 // Holds the values of the available mutable properties for a |CompositorProxy|. |
| 17 // Provided to a proxy at the start of a mutate call with the current input |
| 18 // values taken from the layer tree. |
| 19 // |
| 20 // This data structure is not responsible for tracking property mutations; for |
| 21 // that see |CompositorMutation|. |
| 22 class CompositorMutableProperties { |
| 23 public: |
| 24 uint64_t element_id; |
| 25 double opacity; |
| 26 float scroll_left; |
| 27 float scroll_top; |
| 28 SkMatrix44 transform; |
| 29 }; |
| 30 typedef std::unordered_map<uint64_t, CompositorMutableProperties> |
| 31 ProxyCompositorMutablePropertiesMap; |
| 32 |
14 } // namespace blink | 33 } // namespace blink |
15 | 34 |
16 #endif // CompositorMutableProperties_h | 35 #endif // CompositorMutableProperties_h |
OLD | NEW |