| 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 CC_TREES_CHANNEL_MAIN_H_ | 5 #ifndef CC_TREES_CHANNEL_MAIN_H_ |
| 6 #define CC_TREES_CHANNEL_MAIN_H_ | 6 #define CC_TREES_CHANNEL_MAIN_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/base/completion_event.h" | 9 #include "cc/base/completion_event.h" |
| 10 #include "cc/input/top_controls_state.h" | 10 #include "cc/input/top_controls_state.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0; | 44 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0; |
| 45 virtual void SetVisibleOnImpl(bool visible) = 0; | 45 virtual void SetVisibleOnImpl(bool visible) = 0; |
| 46 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0; | 46 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0; |
| 47 virtual void MainFrameWillHappenOnImplForTesting( | 47 virtual void MainFrameWillHappenOnImplForTesting( |
| 48 CompletionEvent* completion, | 48 CompletionEvent* completion, |
| 49 bool* main_frame_will_happen) = 0; | 49 bool* main_frame_will_happen) = 0; |
| 50 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0; | 50 virtual void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) = 0; |
| 51 virtual void SetNeedsCommitOnImpl() = 0; | 51 virtual void SetNeedsCommitOnImpl() = 0; |
| 52 virtual void BeginMainFrameAbortedOnImpl( | 52 virtual void BeginMainFrameAbortedOnImpl( |
| 53 CommitEarlyOutReason reason, | 53 CommitEarlyOutReason reason, |
| 54 base::TimeTicks main_thread_start_time) = 0; | 54 base::TimeTicks main_thread_start_time, |
| 55 std::vector<std::unique_ptr<SwapPromise>> swap_promises) = 0; |
| 55 virtual void NotifyReadyToCommitOnImpl(CompletionEvent* completion, | 56 virtual void NotifyReadyToCommitOnImpl(CompletionEvent* completion, |
| 56 LayerTreeHost* layer_tree_host, | 57 LayerTreeHost* layer_tree_host, |
| 57 base::TimeTicks main_thread_start_time, | 58 base::TimeTicks main_thread_start_time, |
| 58 bool hold_commit_for_activation) = 0; | 59 bool hold_commit_for_activation) = 0; |
| 59 | 60 |
| 60 // Must be called before using the channel. | 61 // Must be called before using the channel. |
| 61 virtual void SynchronouslyInitializeImpl( | 62 virtual void SynchronouslyInitializeImpl( |
| 62 LayerTreeHost* layer_tree_host, | 63 LayerTreeHost* layer_tree_host, |
| 63 std::unique_ptr<BeginFrameSource> external_begin_frame_source) = 0; | 64 std::unique_ptr<BeginFrameSource> external_begin_frame_source) = 0; |
| 64 | 65 |
| 65 // Must be called before deleting the channel. | 66 // Must be called before deleting the channel. |
| 66 virtual void SynchronouslyCloseImpl() = 0; | 67 virtual void SynchronouslyCloseImpl() = 0; |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace cc | 70 } // namespace cc |
| 70 | 71 |
| 71 #endif // CC_TREES_CHANNEL_MAIN_H_ | 72 #endif // CC_TREES_CHANNEL_MAIN_H_ |
| OLD | NEW |