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 namespace blink { | 8 namespace blink { |
9 class WebWidget; | 9 class WebWidget; |
10 } | 10 } |
(...skipping 20 matching lines...) Expand all Loading... |
31 float page_scale, | 31 float page_scale, |
32 float top_controls_delta) = 0; | 32 float top_controls_delta) = 0; |
33 | 33 |
34 // Notifies that the compositor has issed a BeginMainFrame. | 34 // Notifies that the compositor has issed a BeginMainFrame. |
35 virtual void BeginMainFrame(double frame_time_sec) = 0; | 35 virtual void BeginMainFrame(double frame_time_sec) = 0; |
36 | 36 |
37 // Requests an OutputSurface to render into. | 37 // Requests an OutputSurface to render into. |
38 virtual std::unique_ptr<cc::OutputSurface> CreateOutputSurface( | 38 virtual std::unique_ptr<cc::OutputSurface> CreateOutputSurface( |
39 bool fallback) = 0; | 39 bool fallback) = 0; |
40 | 40 |
41 // Requests an external BeginFrameSource from the delegate. | |
42 virtual std::unique_ptr<cc::BeginFrameSource> | |
43 CreateExternalBeginFrameSource() = 0; | |
44 | |
45 // Notifies that the draw commands for a committed frame have been issued. | 41 // Notifies that the draw commands for a committed frame have been issued. |
46 virtual void DidCommitAndDrawCompositorFrame() = 0; | 42 virtual void DidCommitAndDrawCompositorFrame() = 0; |
47 | 43 |
48 // Notifies about a compositor frame commit operation having finished. | 44 // Notifies about a compositor frame commit operation having finished. |
49 virtual void DidCommitCompositorFrame() = 0; | 45 virtual void DidCommitCompositorFrame() = 0; |
50 | 46 |
51 // Called by the compositor when page scale animation completed. | 47 // Called by the compositor when page scale animation completed. |
52 virtual void DidCompletePageScaleAnimation() = 0; | 48 virtual void DidCompletePageScaleAnimation() = 0; |
53 | 49 |
54 // Notifies that the compositor has posted a swapbuffers operation to the GPU | 50 // Notifies that the compositor has posted a swapbuffers operation to the GPU |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( | 85 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( |
90 std::unique_ptr<cc::CopyOutputRequest> request) = 0; | 86 std::unique_ptr<cc::CopyOutputRequest> request) = 0; |
91 | 87 |
92 protected: | 88 protected: |
93 virtual ~RenderWidgetCompositorDelegate() {} | 89 virtual ~RenderWidgetCompositorDelegate() {} |
94 }; | 90 }; |
95 | 91 |
96 } // namespace content | 92 } // namespace content |
97 | 93 |
98 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ | 94 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ |
OLD | NEW |