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 CompositorMutation_h | 5 #ifndef CompositorMutation_h |
6 #define CompositorMutation_h | 6 #define CompositorMutation_h |
7 | 7 |
| 8 #include <memory> |
8 #include "platform/graphics/CompositorMutableProperties.h" | 9 #include "platform/graphics/CompositorMutableProperties.h" |
9 #include "third_party/skia/include/core/SkMatrix44.h" | 10 #include "third_party/skia/include/core/SkMatrix44.h" |
10 #include "wtf/HashMap.h" | 11 #include "wtf/HashMap.h" |
11 #include <memory> | |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class CompositorMutation { | 15 class CompositorMutation { |
16 public: | 16 public: |
17 void setOpacity(float opacity) { | 17 void setOpacity(float opacity) { |
18 m_mutatedFlags |= CompositorMutableProperty::kOpacity; | 18 m_mutatedFlags |= CompositorMutableProperty::kOpacity; |
19 m_opacity = opacity; | 19 m_opacity = opacity; |
20 } | 20 } |
21 void setScrollLeft(float scrollLeft) { | 21 void setScrollLeft(float scrollLeft) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 SkMatrix44 m_transform; | 57 SkMatrix44 m_transform; |
58 }; | 58 }; |
59 | 59 |
60 struct CompositorMutations { | 60 struct CompositorMutations { |
61 HashMap<uint64_t, std::unique_ptr<CompositorMutation>> map; | 61 HashMap<uint64_t, std::unique_ptr<CompositorMutation>> map; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
65 | 65 |
66 #endif // CompositorMutation_h | 66 #endif // CompositorMutation_h |
OLD | NEW |