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

Unified Diff: cc/layer_impl.cc

Issue 12413020: Do not push properties that are animated on impl only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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/layer_unittest.cc » ('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 ec440c9420b763fc66033427ad8b817d80a92ab2..b01feab71916e3d016124f17011e0c274a11e066 100644
--- a/cc/layer_impl.cc
+++ b/cc/layer_impl.cc
@@ -742,6 +742,12 @@ bool LayerImpl::opacityIsAnimating() const
return m_layerAnimationController->isAnimatingProperty(Animation::Opacity);
}
+bool LayerImpl::opacityIsAnimatingOnImplOnly() const
+{
+ Animation* opacityAnimation = m_layerAnimationController->getAnimation(Animation::Opacity);
danakj 2013/03/13 02:02:06 You're going to need to rebase and chromify this C
Ian Vollick 2013/03/13 02:41:02 Done.
+ return opacityAnimation && opacityAnimation->isImplOnly();
+}
+
void LayerImpl::setPosition(const gfx::PointF& position)
{
if (m_position == position)
@@ -789,6 +795,12 @@ bool LayerImpl::transformIsAnimating() const
return m_layerAnimationController->isAnimatingProperty(Animation::Transform);
}
+bool LayerImpl::transformIsAnimatingOnImplOnly() const
+{
+ Animation* transformAnimation = m_layerAnimationController->getAnimation(Animation::Transform);
+ return transformAnimation && transformAnimation->isImplOnly();
+}
+
void LayerImpl::setContentBounds(const gfx::Size& contentBounds)
{
if (this->contentBounds() == contentBounds)
« no previous file with comments | « cc/layer_impl.h ('k') | cc/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698