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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11532009: LTHI's bg animation timer should set the fake thread to impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only need to set fake thread id in single threaded mode Created 7 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 22995bbe4c8ad0f02295c5c6c3ec86bc3c6ffe4d..4b4e3bbfcbbf060ef83b500b12a73aa2da272db5 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -71,6 +71,9 @@ public:
virtual void onTimerTick() OVERRIDE
{
+ scoped_ptr<DebugScopedSetImplThread> setImplThread;
enne (OOO) 2013/01/10 17:42:27 I think this is the only conditional DebugScopedSe
+ if (!m_layerTreeHostImpl->proxy()->hasImplThread())
+ setImplThread.reset(new DebugScopedSetImplThread(m_layerTreeHostImpl->proxy()));
m_layerTreeHostImpl->animate(base::TimeTicks::Now(), base::Time::Now());
}
« 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