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

Unified Diff: cc/layer_impl.cc

Issue 11633044: We don't want to tick animation controllers for non-active layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding the suggested TODO. Created 7 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layer_impl.h ('k') | cc/test/animation_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_impl.cc
diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc
index 1f6e21ab0d8cac82a8968a47df25c73286acb364..90b9668363f8f32196590f02dcce9660ac898b1b 100644
--- a/cc/layer_impl.cc
+++ b/cc/layer_impl.cc
@@ -496,6 +496,11 @@ void LayerImpl::OnTransformAnimated(const gfx::Transform& transform)
setTransform(transform);
}
+bool LayerImpl::IsActive() const
+{
+ return m_layerTreeImpl->IsActiveTree();
+}
+
void LayerImpl::setBounds(const gfx::Size& bounds)
{
if (m_bounds == bounds)
« no previous file with comments | « cc/layer_impl.h ('k') | cc/test/animation_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698