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

Side by Side Diff: content/renderer/gpu/render_widget_compositor_unittest.cc

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: TODO for GRC usage added. Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 35
36 class StubRenderWidgetCompositorDelegate 36 class StubRenderWidgetCompositorDelegate
37 : public RenderWidgetCompositorDelegate { 37 : public RenderWidgetCompositorDelegate {
38 public: 38 public:
39 // RenderWidgetCompositorDelegate implementation. 39 // RenderWidgetCompositorDelegate implementation.
40 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 40 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
41 const gfx::Vector2dF& outer_delta, 41 const gfx::Vector2dF& outer_delta,
42 const gfx::Vector2dF& elastic_overscroll_delta, 42 const gfx::Vector2dF& elastic_overscroll_delta,
43 float page_scale, 43 float page_scale,
44 float top_controls_delta) override {} 44 float top_controls_delta) override {}
45 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel,
46 bool has_scrolled_by_touch) override {}
45 void BeginMainFrame(double frame_time_sec) override {} 47 void BeginMainFrame(double frame_time_sec) override {}
46 void RequestNewCompositorFrameSink( 48 void RequestNewCompositorFrameSink(
47 bool fallback, 49 bool fallback,
48 const CompositorFrameSinkCallback& callback) override { 50 const CompositorFrameSinkCallback& callback) override {
49 callback.Run(nullptr); 51 callback.Run(nullptr);
50 } 52 }
51 void DidCommitAndDrawCompositorFrame() override {} 53 void DidCommitAndDrawCompositorFrame() override {}
52 void DidCommitCompositorFrame() override {} 54 void DidCommitCompositorFrame() override {}
53 void DidCompletePageScaleAnimation() override {} 55 void DidCompletePageScaleAnimation() override {}
54 void DidReceiveCompositorFrameAck() override {} 56 void DidReceiveCompositorFrameAck() override {}
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 306
305 TEST_F(RenderWidgetCompositorFrameSinkTest, FallbackSuccessNormalSuccess) { 307 TEST_F(RenderWidgetCompositorFrameSinkTest, FallbackSuccessNormalSuccess) {
306 // The first success is a fallback, but the next should not be a fallback. 308 // The first success is a fallback, but the next should not be a fallback.
307 RunTest(false, 309 RunTest(false,
308 RenderWidgetCompositor::COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK, 310 RenderWidgetCompositor::COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK,
309 1, 1); 311 1, 1);
310 } 312 }
311 313
312 } // namespace 314 } // namespace
313 } // namespace content 315 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor_delegate.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698