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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 break; | 538 break; |
539 | 539 |
540 case AnimationEvent::Finished: | 540 case AnimationEvent::Finished: |
541 (*iter).second->NotifyAnimationFinished((*events)[event_index], | 541 (*iter).second->NotifyAnimationFinished((*events)[event_index], |
542 wall_clock_time.ToDoubleT()); | 542 wall_clock_time.ToDoubleT()); |
543 break; | 543 break; |
544 | 544 |
545 case AnimationEvent::PropertyUpdate: | 545 case AnimationEvent::PropertyUpdate: |
546 (*iter).second->NotifyAnimationPropertyUpdate((*events)[event_index]); | 546 (*iter).second->NotifyAnimationPropertyUpdate((*events)[event_index]); |
547 break; | 547 break; |
548 | |
549 default: | |
550 NOTREACHED(); | |
551 } | 548 } |
552 } | 549 } |
553 } | 550 } |
554 } | 551 } |
555 | 552 |
556 void LayerTreeHost::SetRootLayer(scoped_refptr<Layer> root_layer) { | 553 void LayerTreeHost::SetRootLayer(scoped_refptr<Layer> root_layer) { |
557 if (root_layer_.get() == root_layer.get()) | 554 if (root_layer_.get() == root_layer.get()) |
558 return; | 555 return; |
559 | 556 |
560 if (root_layer_.get()) | 557 if (root_layer_.get()) |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 void LayerTreeHost::DidLoseUIResources() { | 1169 void LayerTreeHost::DidLoseUIResources() { |
1173 // When output surface is lost, we need to recreate the resource. | 1170 // When output surface is lost, we need to recreate the resource. |
1174 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin(); | 1171 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin(); |
1175 iter != ui_resource_client_map_.end(); | 1172 iter != ui_resource_client_map_.end(); |
1176 ++iter) { | 1173 ++iter) { |
1177 UIResourceLost(iter->first); | 1174 UIResourceLost(iter->first); |
1178 } | 1175 } |
1179 } | 1176 } |
1180 | 1177 |
1181 } // namespace cc | 1178 } // namespace cc |
OLD | NEW |