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

Unified Diff: cc/layer.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.h ('k') | cc/layer_animation_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.cc
diff --git a/cc/layer.cc b/cc/layer.cc
index 28cff9864bd9642365b933fc5b8ae7c6ed2a6ce5..b2385fccf10d5ef3210faa7fc099af2bc7e38d65 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -737,6 +737,11 @@ void Layer::OnTransformAnimated(const gfx::Transform& transform)
m_transform = transform;
}
+bool Layer::IsActive() const
+{
+ return true;
+}
+
bool Layer::addAnimation(scoped_ptr <ActiveAnimation> animation)
{
// WebCore currently assumes that accelerated animations will start soon
« no previous file with comments | « cc/layer.h ('k') | cc/layer_animation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698