summaryrefslogtreecommitdiffstats
path: root/cc/frame_rate_counter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/frame_rate_counter.cc')
-rw-r--r--cc/frame_rate_counter.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/frame_rate_counter.cc b/cc/frame_rate_counter.cc
index d30aeed..e145c87 100644
--- a/cc/frame_rate_counter.cc
+++ b/cc/frame_rate_counter.cc
@@ -24,6 +24,11 @@ static inline int safeMod(int number, int modulus)
return (number + modulus) % modulus;
}
+// static
+scoped_ptr<CCFrameRateCounter> CCFrameRateCounter::create() {
+ return make_scoped_ptr(new CCFrameRateCounter());
+}
+
inline base::TimeDelta CCFrameRateCounter::frameInterval(int frameNumber) const
{
return m_timeStampHistory[frameIndex(frameNumber)] -