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 class CompositorMutableProperties { |
| 17 public: |
| 18 uint64_t elementId; |
| 19 double opacity; |
| 20 float scrollLeft; |
| 21 float scrollTop; |
| 22 SkMatrix44 transform; |
| 23 }; |
| 24 typedef std::unordered_map<uint64_t, CompositorMutableProperties> |
| 25 ProxyCompositorMutablePropertiesMap; |
| 26 |
14 } // namespace blink | 27 } // namespace blink |
15 | 28 |
16 #endif // CompositorMutableProperties_h | 29 #endif // CompositorMutableProperties_h |
OLD | NEW |