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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11817011: cc: add RingBuffer class for timestamp storing in FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: size_t for buffer size, index and loops 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
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 31f8ac9e31eb63d345fbb636e7c6ead8a43a2504..d5268492ea94ab8cc7433aab35f5b851ca9a1fb4 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -803,7 +803,7 @@ void LayerTreeHostImpl::drawLayers(FrameData& frame)
// FIXME: use the frame begin time from the overall compositor scheduler.
// This value is currently inaccessible because it is up in Chromium's
// RenderWidget.
- m_fpsCounter->markBeginningOfFrame(base::TimeTicks::Now());
+ m_fpsCounter->saveTimeStamp(base::TimeTicks::Now());
if (m_debugState.showHudRects())
m_debugRectHistory->saveDebugRectsForCurrentFrame(rootLayer(), *frame.renderSurfaceLayerList, frame.occludingScreenSpaceRects, frame.nonOccludingScreenSpaceRects, m_debugState);
@@ -853,8 +853,6 @@ const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const
bool LayerTreeHostImpl::swapBuffers()
{
DCHECK(m_renderer);
-
- m_fpsCounter->markEndOfFrame();
return m_renderer->swapBuffers();
}
« no previous file with comments | « cc/heads_up_display_layer_impl.cc ('k') | cc/ring_buffer.h » ('j') | cc/ring_buffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698