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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 194543002: Removing base::Time from SetAnimationEvents and PostAnimationEventsToMainThreadOnImplThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unused last_animation_time_ as well. Created 6 years, 9 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 555
556 556
557 void LayerTreeHost::SetNextCommitWaitsForActivation() { 557 void LayerTreeHost::SetNextCommitWaitsForActivation() {
558 proxy_->SetNextCommitWaitsForActivation(); 558 proxy_->SetNextCommitWaitsForActivation();
559 } 559 }
560 560
561 void LayerTreeHost::SetNextCommitForcesRedraw() { 561 void LayerTreeHost::SetNextCommitForcesRedraw() {
562 next_commit_forces_redraw_ = true; 562 next_commit_forces_redraw_ = true;
563 } 563 }
564 564
565 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, 565 void LayerTreeHost::SetAnimationEvents(
566 base::Time wall_clock_time) { 566 scoped_ptr<AnimationEventsVector> events) {
567 DCHECK(proxy_->IsMainThread()); 567 DCHECK(proxy_->IsMainThread());
568 for (size_t event_index = 0; event_index < events->size(); ++event_index) { 568 for (size_t event_index = 0; event_index < events->size(); ++event_index) {
569 int event_layer_id = (*events)[event_index].layer_id; 569 int event_layer_id = (*events)[event_index].layer_id;
570 570
571 // Use the map of all controllers, not just active ones, since non-active 571 // Use the map of all controllers, not just active ones, since non-active
572 // controllers may still receive events for impl-only animations. 572 // controllers may still receive events for impl-only animations.
573 const AnimationRegistrar::AnimationControllerMap& animation_controllers = 573 const AnimationRegistrar::AnimationControllerMap& animation_controllers =
574 animation_registrar_->all_animation_controllers(); 574 animation_registrar_->all_animation_controllers();
575 AnimationRegistrar::AnimationControllerMap::const_iterator iter = 575 AnimationRegistrar::AnimationControllerMap::const_iterator iter =
576 animation_controllers.find(event_layer_id); 576 animation_controllers.find(event_layer_id);
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 swap_promise_list_.push_back(swap_promise.Pass()); 1310 swap_promise_list_.push_back(swap_promise.Pass());
1311 } 1311 }
1312 1312
1313 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { 1313 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) {
1314 for (size_t i = 0; i < swap_promise_list_.size(); i++) 1314 for (size_t i = 0; i < swap_promise_list_.size(); i++)
1315 swap_promise_list_[i]->DidNotSwap(reason); 1315 swap_promise_list_[i]->DidNotSwap(reason);
1316 swap_promise_list_.clear(); 1316 swap_promise_list_.clear();
1317 } 1317 }
1318 1318
1319 } // namespace cc 1319 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698