Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3630)

Unified Diff: cc/animation/animation_events.cc

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win trybot failure Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/animation/animation_events.h ('k') | cc/animation/animation_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_events.cc
diff --git a/cc/animation/animation_events.cc b/cc/animation/animation_events.cc
index edd435b772a5167b90cd49c088d59a6a8b3e36b4..e747f8bec2a06745180b8dda0edc335e241d0434 100644
--- a/cc/animation/animation_events.cc
+++ b/cc/animation/animation_events.cc
@@ -19,7 +19,38 @@ AnimationEvent::AnimationEvent(AnimationEvent::Type type,
is_impl_only(false),
opacity(0.f) {}
-AnimationEvent::AnimationEvent(const AnimationEvent& other) = default;
+AnimationEvent::AnimationEvent(const AnimationEvent& other) {
+ type = other.type;
+ layer_id = other.layer_id;
+ group_id = other.group_id;
+ target_property = other.target_property;
+ monotonic_time = other.monotonic_time;
+ is_impl_only = other.is_impl_only;
+ opacity = other.opacity;
+ transform = other.transform;
+ filters = other.filters;
+ animation_start_time = other.animation_start_time;
+ if (other.curve)
+ curve = other.curve->Clone();
+}
+
+AnimationEvent& AnimationEvent::operator=(const AnimationEvent& other) {
+ type = other.type;
+ layer_id = other.layer_id;
+ group_id = other.group_id;
+ target_property = other.target_property;
+ monotonic_time = other.monotonic_time;
+ is_impl_only = other.is_impl_only;
+ opacity = other.opacity;
+ transform = other.transform;
+ filters = other.filters;
+ animation_start_time = other.animation_start_time;
+ if (other.curve)
+ curve = other.curve->Clone();
+ return *this;
+}
+
+AnimationEvent::~AnimationEvent() {}
AnimationEvents::AnimationEvents() {}
« no previous file with comments | « cc/animation/animation_events.h ('k') | cc/animation/animation_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698