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

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: 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
Index: cc/layer_impl.cc
diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc
index 09c1fa04a73e185e63aeef74dd2af24b1c820696..395c9a716e6430624d29f21be89a9fde3e15a934 100644
--- a/cc/layer_impl.cc
+++ b/cc/layer_impl.cc
@@ -495,6 +495,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)
« cc/layer.h ('K') | « 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