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

Unified Diff: cc/thread_proxy.cc

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 8 years, 2 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/thread_proxy.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index f738f8f213cb133ae84a92192d2f87e7a664be99..dc2404c254ef98296fb4eff8b7b88b6bf97767b4 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -9,6 +9,7 @@
#include "CCDelayBasedTimeSource.h"
#include "CCDrawQuad.h"
#include "CCFrameRateController.h"
+#include "CCFrameRateCounter.h"
#include "CCGraphicsContext.h"
#include "CCInputHandler.h"
#include "CCLayerTreeHost.h"
@@ -318,6 +319,7 @@ void CCThreadProxy::onVSyncParametersChanged(double monotonicTimebase, double in
base::TimeTicks timebase = base::TimeTicks::FromInternalValue(monotonicTimebase * base::Time::kMicrosecondsPerSecond);
base::TimeDelta interval = base::TimeDelta::FromMicroseconds(intervalInSeconds * base::Time::kMicrosecondsPerSecond);
m_schedulerOnImplThread->setTimebaseAndInterval(timebase, interval);
+ m_layerTreeHostImpl->fpsCounter()->setTimebaseAndInterval(timebase, interval);
}
void CCThreadProxy::onCanDrawStateChanged(bool canDraw)
@@ -899,6 +901,7 @@ void CCThreadProxy::initializeRendererOnImplThread(CCCompletionEvent* completion
*capabilities = m_layerTreeHostImpl->rendererCapabilities();
m_schedulerOnImplThread->setSwapBuffersCompleteSupported(
capabilities->usingSwapCompleteCallback);
+ onVSyncParametersChanged(0, 1/60.0);
}
completion->signal();
« no previous file with comments | « cc/thread_proxy.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698