Commit 46d8c829 authored by nduca@chromium.org's avatar nduca@chromium.org

EarlyOut_AnimatedTooRecently should only be done in software mode

BUG=106786
R=jamesr@chromium.org,jbates@chromium.org


Review URL: http://codereview.chromium.org/8898010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114041 0039d316-1c4b-4281-b951-d872f2087c98
parent 788c6b47
...@@ -679,7 +679,7 @@ void RenderWidget::AnimateIfNeeded() { ...@@ -679,7 +679,7 @@ void RenderWidget::AnimateIfNeeded() {
int animationInterval = IsRenderingVSynced() ? 16 : 0; int animationInterval = IsRenderingVSynced() ? 16 : 0;
base::Time now = base::Time::Now(); base::Time now = base::Time::Now();
if (now >= animation_floor_time_) { if (now >= animation_floor_time_ || is_accelerated_compositing_active_) {
TRACE_EVENT0("renderer", "RenderWidget::AnimateIfNeeded") TRACE_EVENT0("renderer", "RenderWidget::AnimateIfNeeded")
animation_floor_time_ = now + animation_floor_time_ = now +
base::TimeDelta::FromMilliseconds(animationInterval); base::TimeDelta::FromMilliseconds(animationInterval);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment