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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11413199: Adding tracing to measure synthetic smooth scrolling correctness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | content/browser/renderer_host/render_widget_host_view_base.cc » ('j') | 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 e8ff61f8713282f897df59dd3571e1df1315dee9..c994d7b6faa52153ef52e6573003c9db4a614672 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -800,6 +800,13 @@ void LayerTreeHostImpl::drawLayers(const FrameData& frame)
// RenderWidget.
m_fpsCounter->markBeginningOfFrame(base::TimeTicks::Now());
+ // Get the TranslateY value for a sanity-check on scrolling benchmark
+ // metrics. Specifically, we want to make sure
+ // BasicMouseWheelSmoothScrollGesture has proper scroll curves.
+ TRACE_COUNTER_ID1("gpu", "frame_counter_translate_y", this,
nduca 2012/11/27 23:50:27 maybe root_layer_y_translate?
shawnsingh 2012/11/27 23:59:58 I also like nduca's proposed rename. What assumpt
+ m_rootScrollLayerImpl->drawTransform().matrix().getDouble(
jamesr 2012/11/28 00:02:16 cc::LayerImpl has a scrollOffset, can't you use th
+ 1, 3));
+
if (m_settings.showDebugRects())
m_debugRectHistory->saveDebugRectsForCurrentFrame(m_rootLayerImpl.get(), *frame.renderSurfaceLayerList, frame.occludingScreenSpaceRects, frame.nonOccludingScreenSpaceRects, settings());
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698