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

Unified Diff: content/renderer/render_widget.cc

Issue 8898010: EarlyOut_AnimatedTooRecently should only be done in software mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 136c7ec2e7944addaa1fbd9c41aca7020281cd44..e078dd61946a28934d1c765b704aaa5dd5247c41 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -651,7 +651,7 @@ void RenderWidget::AnimateIfNeeded() {
int animationInterval = IsRenderingVSynced() ? 16 : 0;
base::Time now = base::Time::Now();
- if (now >= animation_floor_time_) {
+ if (now >= animation_floor_time_ || is_accelerated_compositing_active_) {
jamesr 2011/12/09 20:38:14 shouldn't this be checking using_asynchronous_swap
TRACE_EVENT0("renderer", "RenderWidget::AnimateIfNeeded")
animation_floor_time_ = now +
base::TimeDelta::FromMilliseconds(animationInterval);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698