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_PROXY_MAIN_H_ | 5 #ifndef CC_TREES_PROXY_MAIN_H_ |
6 #define CC_TREES_PROXY_MAIN_H_ | 6 #define CC_TREES_PROXY_MAIN_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/input/top_controls_state.h" | 10 #include "cc/input/top_controls_state.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 // Commits between the main and impl threads are processed through a pipeline | 41 // Commits between the main and impl threads are processed through a pipeline |
42 // with the following stages. For efficiency we can early out at any stage if | 42 // with the following stages. For efficiency we can early out at any stage if |
43 // we decide that no further processing is necessary. | 43 // we decide that no further processing is necessary. |
44 enum CommitPipelineStage { | 44 enum CommitPipelineStage { |
45 NO_PIPELINE_STAGE, | 45 NO_PIPELINE_STAGE, |
46 ANIMATE_PIPELINE_STAGE, | 46 ANIMATE_PIPELINE_STAGE, |
47 UPDATE_LAYERS_PIPELINE_STAGE, | 47 UPDATE_LAYERS_PIPELINE_STAGE, |
48 COMMIT_PIPELINE_STAGE, | 48 COMMIT_PIPELINE_STAGE, |
49 }; | 49 }; |
50 | 50 |
51 void DidCompleteSwapBuffers(); | 51 void DidReceiveCompositorFrameAck(); |
52 void BeginMainFrameNotExpectedSoon(); | 52 void BeginMainFrameNotExpectedSoon(); |
53 void DidCommitAndDrawFrame(); | 53 void DidCommitAndDrawFrame(); |
54 void SetAnimationEvents(std::unique_ptr<AnimationEvents> events); | 54 void SetAnimationEvents(std::unique_ptr<AnimationEvents> events); |
55 void DidLoseCompositorFrameSink(); | 55 void DidLoseCompositorFrameSink(); |
56 void RequestNewCompositorFrameSink(); | 56 void RequestNewCompositorFrameSink(); |
57 void DidInitializeCompositorFrameSink(bool success); | 57 void DidInitializeCompositorFrameSink(bool success); |
58 void DidCompletePageScaleAnimation(); | 58 void DidCompletePageScaleAnimation(); |
59 void BeginMainFrame( | 59 void BeginMainFrame( |
60 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); | 60 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); |
61 | 61 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 bool defer_commits_; | 137 bool defer_commits_; |
138 | 138 |
139 std::unique_ptr<ChannelMain> channel_main_; | 139 std::unique_ptr<ChannelMain> channel_main_; |
140 | 140 |
141 DISALLOW_COPY_AND_ASSIGN(ProxyMain); | 141 DISALLOW_COPY_AND_ASSIGN(ProxyMain); |
142 }; | 142 }; |
143 | 143 |
144 } // namespace cc | 144 } // namespace cc |
145 | 145 |
146 #endif // CC_TREES_PROXY_MAIN_H_ | 146 #endif // CC_TREES_PROXY_MAIN_H_ |
OLD | NEW |