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

Side by Side Diff: content/renderer/gpu/render_widget_compositor_delegate.h

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: boolean flags used instead of fieldbit 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 // Report viewport related properties during a commit from the compositor 30 // Report viewport related properties during a commit from the compositor
31 // thread. 31 // thread.
32 virtual void ApplyViewportDeltas( 32 virtual void ApplyViewportDeltas(
33 const gfx::Vector2dF& inner_delta, 33 const gfx::Vector2dF& inner_delta,
34 const gfx::Vector2dF& outer_delta, 34 const gfx::Vector2dF& outer_delta,
35 const gfx::Vector2dF& elastic_overscroll_delta, 35 const gfx::Vector2dF& elastic_overscroll_delta,
36 float page_scale, 36 float page_scale,
37 float top_controls_delta) = 0; 37 float top_controls_delta) = 0;
38 38
39 // Record use count of wheel/touch sources for scrolling on the compositor
40 // tread.
danakj 2017/03/16 15:19:21 thread
sahel 2017/03/17 21:02:34 Done.
41 virtual void RecordWheelAndTouchScrollingCount(
42 bool has_scrolled_by_wheel,
43 bool has_scrolled_by_touch) = 0;
44
39 // Notifies that the compositor has issed a BeginMainFrame. 45 // Notifies that the compositor has issed a BeginMainFrame.
40 virtual void BeginMainFrame(double frame_time_sec) = 0; 46 virtual void BeginMainFrame(double frame_time_sec) = 0;
41 47
42 // Requests a CompositorFrameSink to submit to. 48 // Requests a CompositorFrameSink to submit to.
43 virtual std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( 49 virtual std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink(
44 const cc::FrameSinkId& frame_sink_id, 50 const cc::FrameSinkId& frame_sink_id,
45 bool fallback) = 0; 51 bool fallback) = 0;
46 52
47 // Notifies that the draw commands for a committed frame have been issued. 53 // Notifies that the draw commands for a committed frame have been issued.
48 virtual void DidCommitAndDrawCompositorFrame() = 0; 54 virtual void DidCommitAndDrawCompositorFrame() = 0;
(...skipping 29 matching lines...) Expand all
78 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( 84 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest(
79 std::unique_ptr<cc::CopyOutputRequest> request) = 0; 85 std::unique_ptr<cc::CopyOutputRequest> request) = 0;
80 86
81 protected: 87 protected:
82 virtual ~RenderWidgetCompositorDelegate() {} 88 virtual ~RenderWidgetCompositorDelegate() {}
83 }; 89 };
84 90
85 } // namespace content 91 } // namespace content
86 92
87 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ 93 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698