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

Unified Diff: cc/scrollbar_animation_controller.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/scrollbar_animation_controller.cc
diff --git a/cc/scrollbar_animation_controller.cc b/cc/scrollbar_animation_controller.cc
index 4d75877d2efcb9f31cea5d2f3dac5911bf98a278..1d9151b11e1556231341179f18fe919feb4a0c3f 100644
--- a/cc/scrollbar_animation_controller.cc
+++ b/cc/scrollbar_animation_controller.cc
@@ -4,6 +4,7 @@
#include "cc/scrollbar_animation_controller.h"
+#include "base/debug/trace_event.h"
#include "base/time.h"
#include "build/build_config.h"
#include "cc/scrollbar_layer_impl.h"
@@ -80,6 +81,12 @@ void ScrollbarAnimationController::updateScrollOffsetAtTime(LayerImpl* scrollLay
m_totalSize = getScrollLayerBounds(scrollLayer);
m_maximum = scrollLayer->maxScrollOffset();
+ // Get the m_currentOffset.y() value for a sanity-check on scrolling
+ // benchmark metrics. Specifically, we want to make sure
+ // BasicMouseWheelSmoothScrollGesture has proper scroll curves.
+ TRACE_COUNTER_ID1("gpu", "scroll_offset_y", this, m_currentOffset.y());
nduca 2013/01/04 22:42:13 we should be passing a layerTreeHostImpl pointer h
+
+
if (m_horizontalScrollbarLayer) {
m_horizontalScrollbarLayer->setCurrentPos(m_currentOffset.x());
m_horizontalScrollbarLayer->setTotalSize(m_totalSize.width());
« 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