| OLD | NEW |
| 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 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 } | 515 } |
| 516 | 516 |
| 517 bool LayerTreeHost::CommitRequested() const { | 517 bool LayerTreeHost::CommitRequested() const { |
| 518 return proxy_->CommitRequested(); | 518 return proxy_->CommitRequested(); |
| 519 } | 519 } |
| 520 | 520 |
| 521 void LayerTreeHost::SetNextCommitWaitsForActivation() { | 521 void LayerTreeHost::SetNextCommitWaitsForActivation() { |
| 522 proxy_->SetNextCommitWaitsForActivation(); | 522 proxy_->SetNextCommitWaitsForActivation(); |
| 523 } | 523 } |
| 524 | 524 |
| 525 void LayerTreeHost::SetNextCommitForcesRedraw() { |
| 526 proxy_->SetNextCommitForcesRedraw(); |
| 527 } |
| 528 |
| 525 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 529 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
| 526 base::Time wall_clock_time) { | 530 base::Time wall_clock_time) { |
| 527 DCHECK(proxy_->IsMainThread()); | 531 DCHECK(proxy_->IsMainThread()); |
| 528 for (size_t event_index = 0; event_index < events->size(); ++event_index) { | 532 for (size_t event_index = 0; event_index < events->size(); ++event_index) { |
| 529 int event_layer_id = (*events)[event_index].layer_id; | 533 int event_layer_id = (*events)[event_index].layer_id; |
| 530 | 534 |
| 531 // Use the map of all controllers, not just active ones, since non-active | 535 // Use the map of all controllers, not just active ones, since non-active |
| 532 // controllers may still receive events for impl-only animations. | 536 // controllers may still receive events for impl-only animations. |
| 533 const AnimationRegistrar::AnimationControllerMap& animation_controllers = | 537 const AnimationRegistrar::AnimationControllerMap& animation_controllers = |
| 534 animation_registrar_->all_animation_controllers(); | 538 animation_registrar_->all_animation_controllers(); |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 void LayerTreeHost::DidLoseUIResources() { | 1171 void LayerTreeHost::DidLoseUIResources() { |
| 1168 // When output surface is lost, we need to recreate the resource. | 1172 // When output surface is lost, we need to recreate the resource. |
| 1169 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin(); | 1173 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin(); |
| 1170 iter != ui_resource_client_map_.end(); | 1174 iter != ui_resource_client_map_.end(); |
| 1171 ++iter) { | 1175 ++iter) { |
| 1172 UIResourceLost(iter->first); | 1176 UIResourceLost(iter->first); |
| 1173 } | 1177 } |
| 1174 } | 1178 } |
| 1175 | 1179 |
| 1176 } // namespace cc | 1180 } // namespace cc |
| OLD | NEW |