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

Unified Diff: cc/layer_tree_impl.cc

Issue 11598005: Ref count layer animation controllers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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
« cc/layer_tree_host.cc ('K') | « cc/layer_tree_impl.h ('k') | cc/proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_impl.cc
diff --git a/cc/layer_tree_impl.cc b/cc/layer_tree_impl.cc
index 0c68bb9a6c765779d90dcf30bf5fe0e5bb97b320..ddbe2edb9936dc72a834f5f4c3af754c1f5d5b98 100644
--- a/cc/layer_tree_impl.cc
+++ b/cc/layer_tree_impl.cc
@@ -160,5 +160,32 @@ DebugRectHistory* LayerTreeImpl::debug_rect_history() const {
return layer_tree_host_impl_->debugRectHistory();
}
+scoped_refptr<LayerAnimationController> LayerTreeImpl::GetAnimationControllerForId(int id) {
+ AnimationRegistrar* registrar = layer_tree_host_impl_;
+ return registrar->GetAnimationControllerForId(id);
+}
+void LayerTreeImpl::DidActivateAnimationController(
+ LayerAnimationController* controller) {
+ AnimationRegistrar* registrar = layer_tree_host_impl_;
+ registrar->DidActivateAnimationController(controller);
+}
+
+void LayerTreeImpl::DidDeactivateAnimationController(
+ LayerAnimationController* controller) {
+ AnimationRegistrar* registrar = layer_tree_host_impl_;
+ registrar->DidDeactivateAnimationController(controller);
+}
+
+void LayerTreeImpl::RegisterAnimationController(
+ LayerAnimationController* controller) {
+ AnimationRegistrar* registrar = layer_tree_host_impl_;
+ registrar->RegisterAnimationController(controller);
+}
+
+void LayerTreeImpl::UnregisterAnimationController(
+ LayerAnimationController* controller) {
+ AnimationRegistrar* registrar = layer_tree_host_impl_;
+ registrar->UnregisterAnimationController(controller);
+}
} // namespace cc
« cc/layer_tree_host.cc ('K') | « cc/layer_tree_impl.h ('k') | cc/proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698