OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "cc/animation/animation_events.h" | 5 #include "cc/animation/animation_events.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 | 8 |
9 AnimationEvent::AnimationEvent(AnimationEvent::Type type, | 9 AnimationEvent::AnimationEvent(AnimationEvent::Type type, |
10 int layer_id, | 10 ElementId element_id, |
11 int group_id, | 11 int group_id, |
12 TargetProperty::Type target_property, | 12 TargetProperty::Type target_property, |
13 base::TimeTicks monotonic_time) | 13 base::TimeTicks monotonic_time) |
14 : type(type), | 14 : type(type), |
15 layer_id(layer_id), | 15 element_id(element_id), |
16 group_id(group_id), | 16 group_id(group_id), |
17 target_property(target_property), | 17 target_property(target_property), |
18 monotonic_time(monotonic_time), | 18 monotonic_time(monotonic_time), |
19 is_impl_only(false), | 19 is_impl_only(false), |
20 opacity(0.f) {} | 20 opacity(0.f) {} |
21 | 21 |
22 AnimationEvent::AnimationEvent(const AnimationEvent& other) { | 22 AnimationEvent::AnimationEvent(const AnimationEvent& other) { |
23 type = other.type; | 23 type = other.type; |
24 layer_id = other.layer_id; | 24 element_id = other.element_id; |
25 group_id = other.group_id; | 25 group_id = other.group_id; |
26 target_property = other.target_property; | 26 target_property = other.target_property; |
27 monotonic_time = other.monotonic_time; | 27 monotonic_time = other.monotonic_time; |
28 is_impl_only = other.is_impl_only; | 28 is_impl_only = other.is_impl_only; |
29 opacity = other.opacity; | 29 opacity = other.opacity; |
30 transform = other.transform; | 30 transform = other.transform; |
31 filters = other.filters; | 31 filters = other.filters; |
32 animation_start_time = other.animation_start_time; | 32 animation_start_time = other.animation_start_time; |
33 if (other.curve) | 33 if (other.curve) |
34 curve = other.curve->Clone(); | 34 curve = other.curve->Clone(); |
35 } | 35 } |
36 | 36 |
37 AnimationEvent& AnimationEvent::operator=(const AnimationEvent& other) { | 37 AnimationEvent& AnimationEvent::operator=(const AnimationEvent& other) { |
38 type = other.type; | 38 type = other.type; |
39 layer_id = other.layer_id; | 39 element_id = other.element_id; |
40 group_id = other.group_id; | 40 group_id = other.group_id; |
41 target_property = other.target_property; | 41 target_property = other.target_property; |
42 monotonic_time = other.monotonic_time; | 42 monotonic_time = other.monotonic_time; |
43 is_impl_only = other.is_impl_only; | 43 is_impl_only = other.is_impl_only; |
44 opacity = other.opacity; | 44 opacity = other.opacity; |
45 transform = other.transform; | 45 transform = other.transform; |
46 filters = other.filters; | 46 filters = other.filters; |
47 animation_start_time = other.animation_start_time; | 47 animation_start_time = other.animation_start_time; |
48 if (other.curve) | 48 if (other.curve) |
49 curve = other.curve->Clone(); | 49 curve = other.curve->Clone(); |
50 return *this; | 50 return *this; |
51 } | 51 } |
52 | 52 |
53 AnimationEvent::~AnimationEvent() {} | 53 AnimationEvent::~AnimationEvent() {} |
54 | 54 |
55 AnimationEvents::AnimationEvents() {} | 55 AnimationEvents::AnimationEvents() {} |
56 | 56 |
57 AnimationEvents::~AnimationEvents() {} | 57 AnimationEvents::~AnimationEvents() {} |
58 | 58 |
59 } // namespace cc | 59 } // namespace cc |
OLD | NEW |