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

Unified Diff: cc/CCDelayBasedTimeSource.cpp

Issue 10947047: Fix remaining cc files to compile with Clang (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: All remaining files Created 8 years, 3 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
Index: cc/CCDelayBasedTimeSource.cpp
diff --git a/cc/CCDelayBasedTimeSource.cpp b/cc/CCDelayBasedTimeSource.cpp
index 8a623dd040569e391278a46ac0d1da0238962b53..50578764751050a0130745786485fcea239b73b4 100644
--- a/cc/CCDelayBasedTimeSource.cpp
+++ b/cc/CCDelayBasedTimeSource.cpp
@@ -73,6 +73,11 @@ void CCDelayBasedTimeSource::setActive(bool active)
postNextTickTask(now);
}
+bool CCDelayBasedTimeSource::active() const
+{
+ return m_state != STATE_INACTIVE;
+}
+
double CCDelayBasedTimeSource::lastTickTime()
{
return m_lastTickTime;
@@ -102,6 +107,11 @@ void CCDelayBasedTimeSource::onTimerFired()
m_client->onTimerTick();
}
+void CCDelayBasedTimeSource::setClient(CCTimeSourceClient* client)
+{
+ m_client = client;
+}
+
void CCDelayBasedTimeSource::setTimebaseAndInterval(double timebase, double intervalSeconds)
{
m_nextParameters.interval = intervalSeconds;

Powered by Google App Engine
This is Rietveld 408576698