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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1584743002: CC Animation: Replace AnimiationEventsVector with AnimiationEvents class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 11 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/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index d31265ce56bedef65152b0e5b6d7bbd015309898..139eec14c91dfe279e3c8c4b004d96028e7a7464 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -21,6 +21,7 @@
#include "base/stl_util.h"
#include "base/strings/stringprintf.h"
#include "base/trace_event/trace_event_argument.h"
+#include "cc/animation/animation_events.h"
#include "cc/animation/animation_host.h"
#include "cc/animation/animation_id_provider.h"
#include "cc/animation/scroll_offset_animation_curve.h"
@@ -3265,7 +3266,7 @@ void LayerTreeHostImpl::UpdateAnimationState(bool start_ready_animations) {
return;
bool has_active_animations = false;
- scoped_ptr<AnimationEventsVector> events;
+ scoped_ptr<AnimationEvents> events;
if (animation_host_) {
events = animation_host_->CreateEvents();
@@ -3277,7 +3278,7 @@ void LayerTreeHostImpl::UpdateAnimationState(bool start_ready_animations) {
start_ready_animations, events.get());
}
- if (!events->empty())
+ if (!events->events_.empty())
client_->PostAnimationEventsToMainThreadOnImplThread(std::move(events));
if (has_active_animations)
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698