OLD | NEW |
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 21 matching lines...) Expand all Loading... |
32 public: | 32 public: |
33 // Report viewport related properties during a commit from the compositor | 33 // Report viewport related properties during a commit from the compositor |
34 // thread. | 34 // thread. |
35 virtual void ApplyViewportDeltas( | 35 virtual void ApplyViewportDeltas( |
36 const gfx::Vector2dF& inner_delta, | 36 const gfx::Vector2dF& inner_delta, |
37 const gfx::Vector2dF& outer_delta, | 37 const gfx::Vector2dF& outer_delta, |
38 const gfx::Vector2dF& elastic_overscroll_delta, | 38 const gfx::Vector2dF& elastic_overscroll_delta, |
39 float page_scale, | 39 float page_scale, |
40 float top_controls_delta) = 0; | 40 float top_controls_delta) = 0; |
41 | 41 |
| 42 // Record use count of wheel/touch sources for scrolling on the compositor |
| 43 // thread. |
| 44 virtual void RecordWheelAndTouchScrollingCount( |
| 45 bool has_scrolled_by_wheel, |
| 46 bool has_scrolled_by_touch) = 0; |
| 47 |
42 // Notifies that the compositor has issed a BeginMainFrame. | 48 // Notifies that the compositor has issed a BeginMainFrame. |
43 virtual void BeginMainFrame(double frame_time_sec) = 0; | 49 virtual void BeginMainFrame(double frame_time_sec) = 0; |
44 | 50 |
45 // Requests a CompositorFrameSink to submit CompositorFrames to. | 51 // Requests a CompositorFrameSink to submit CompositorFrames to. |
46 virtual void RequestNewCompositorFrameSink( | 52 virtual void RequestNewCompositorFrameSink( |
47 bool fallback, | 53 bool fallback, |
48 const CompositorFrameSinkCallback& callback) = 0; | 54 const CompositorFrameSinkCallback& callback) = 0; |
49 | 55 |
50 // Notifies that the draw commands for a committed frame have been issued. | 56 // Notifies that the draw commands for a committed frame have been issued. |
51 virtual void DidCommitAndDrawCompositorFrame() = 0; | 57 virtual void DidCommitAndDrawCompositorFrame() = 0; |
(...skipping 29 matching lines...) Expand all Loading... |
81 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( | 87 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( |
82 std::unique_ptr<cc::CopyOutputRequest> request) = 0; | 88 std::unique_ptr<cc::CopyOutputRequest> request) = 0; |
83 | 89 |
84 protected: | 90 protected: |
85 virtual ~RenderWidgetCompositorDelegate() {} | 91 virtual ~RenderWidgetCompositorDelegate() {} |
86 }; | 92 }; |
87 | 93 |
88 } // namespace content | 94 } // namespace content |
89 | 95 |
90 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ | 96 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ |
OLD | NEW |