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/layer_tree_impl.h" | 5 #include "cc/layer_tree_impl.h" |
6 | 6 |
7 #include "cc/layer_tree_host_common.h" | 7 #include "cc/layer_tree_host_common.h" |
8 #include "cc/layer_tree_host_impl.h" | 8 #include "cc/layer_tree_host_impl.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 153 } |
154 | 154 |
155 std::string LayerTreeImpl::layer_tree_as_text() const { | 155 std::string LayerTreeImpl::layer_tree_as_text() const { |
156 return layer_tree_host_impl_->layerTreeAsText(); | 156 return layer_tree_host_impl_->layerTreeAsText(); |
157 } | 157 } |
158 | 158 |
159 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { | 159 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { |
160 return layer_tree_host_impl_->debugRectHistory(); | 160 return layer_tree_host_impl_->debugRectHistory(); |
161 } | 161 } |
162 | 162 |
| 163 scoped_refptr<LayerAnimationController> LayerTreeImpl::GetAnimationControllerFor
Id(int id) { |
| 164 AnimationRegistrar* registrar = layer_tree_host_impl_; |
| 165 return registrar->GetAnimationControllerForId(id); |
| 166 } |
| 167 void LayerTreeImpl::DidActivateAnimationController( |
| 168 LayerAnimationController* controller) { |
| 169 AnimationRegistrar* registrar = layer_tree_host_impl_; |
| 170 registrar->DidActivateAnimationController(controller); |
| 171 } |
| 172 |
| 173 void LayerTreeImpl::DidDeactivateAnimationController( |
| 174 LayerAnimationController* controller) { |
| 175 AnimationRegistrar* registrar = layer_tree_host_impl_; |
| 176 registrar->DidDeactivateAnimationController(controller); |
| 177 } |
| 178 |
| 179 void LayerTreeImpl::RegisterAnimationController( |
| 180 LayerAnimationController* controller) { |
| 181 AnimationRegistrar* registrar = layer_tree_host_impl_; |
| 182 registrar->RegisterAnimationController(controller); |
| 183 } |
| 184 |
| 185 void LayerTreeImpl::UnregisterAnimationController( |
| 186 LayerAnimationController* controller) { |
| 187 AnimationRegistrar* registrar = layer_tree_host_impl_; |
| 188 registrar->UnregisterAnimationController(controller); |
| 189 } |
163 | 190 |
164 } // namespace cc | 191 } // namespace cc |
OLD | NEW |