| 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 18 matching lines...) Expand all Loading... |
| 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. |
| 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 Loading... |
| 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_ |
| OLD | NEW |