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_IMPL_H_ | 5 #ifndef CC_TREES_PROXY_IMPL_H_ |
6 #define CC_TREES_PROXY_IMPL_H_ | 6 #define CC_TREES_PROXY_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 std::unique_ptr<AnimationEvents> events) override; | 99 std::unique_ptr<AnimationEvents> events) override; |
100 bool IsInsideDraw() override; | 100 bool IsInsideDraw() override; |
101 void RenewTreePriority() override; | 101 void RenewTreePriority() override; |
102 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 102 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
103 base::TimeDelta delay) override; | 103 base::TimeDelta delay) override; |
104 void DidActivateSyncTree() override; | 104 void DidActivateSyncTree() override; |
105 void WillPrepareTiles() override; | 105 void WillPrepareTiles() override; |
106 void DidPrepareTiles() override; | 106 void DidPrepareTiles() override; |
107 void DidCompletePageScaleAnimationOnImplThread() override; | 107 void DidCompletePageScaleAnimationOnImplThread() override; |
108 void OnDrawForOutputSurface(bool resourceless_software_draw) override; | 108 void OnDrawForOutputSurface(bool resourceless_software_draw) override; |
109 // This should only be called by LayerTreeHostImpl::PostFrameTimingEvents. | |
110 void PostFrameTimingEventsOnImplThread( | |
111 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | |
112 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) | |
113 override; | |
114 | 109 |
115 // SchedulerClient implementation | 110 // SchedulerClient implementation |
116 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 111 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
117 void DidFinishImplFrame() override; | 112 void DidFinishImplFrame() override; |
118 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; | 113 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; |
119 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 114 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
120 DrawResult ScheduledActionDrawAndSwapForced() override; | 115 DrawResult ScheduledActionDrawAndSwapForced() override; |
121 void ScheduledActionCommit() override; | 116 void ScheduledActionCommit() override; |
122 void ScheduledActionActivateSyncTree() override; | 117 void ScheduledActionActivateSyncTree() override; |
123 void ScheduledActionBeginOutputSurfaceCreation() override; | 118 void ScheduledActionBeginOutputSurfaceCreation() override; |
(...skipping 27 matching lines...) Expand all Loading... |
151 TaskRunnerProvider* task_runner_provider_; | 146 TaskRunnerProvider* task_runner_provider_; |
152 | 147 |
153 DelayedUniqueNotifier smoothness_priority_expiration_notifier_; | 148 DelayedUniqueNotifier smoothness_priority_expiration_notifier_; |
154 | 149 |
155 std::unique_ptr<BeginFrameSource> external_begin_frame_source_; | 150 std::unique_ptr<BeginFrameSource> external_begin_frame_source_; |
156 std::unique_ptr<BeginFrameSource> unthrottled_begin_frame_source_; | 151 std::unique_ptr<BeginFrameSource> unthrottled_begin_frame_source_; |
157 std::unique_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_; | 152 std::unique_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_; |
158 | 153 |
159 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 154 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
160 | 155 |
161 // Values used to keep track of frame durations. Used only in frame timing. | |
162 BeginFrameArgs last_begin_main_frame_args_; | |
163 BeginFrameArgs last_processed_begin_main_frame_args_; | |
164 | |
165 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; | 156 std::unique_ptr<LayerTreeHostImpl> layer_tree_host_impl_; |
166 | 157 |
167 ChannelImpl* channel_impl_; | 158 ChannelImpl* channel_impl_; |
168 | 159 |
169 // Use accessors instead of this variable directly. | 160 // Use accessors instead of this variable directly. |
170 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; | 161 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; |
171 BlockedMainCommitOnly& blocked_main_commit(); | 162 BlockedMainCommitOnly& blocked_main_commit(); |
172 | 163 |
173 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 164 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
174 }; | 165 }; |
175 | 166 |
176 } // namespace cc | 167 } // namespace cc |
177 | 168 |
178 #endif // CC_TREES_PROXY_IMPL_H_ | 169 #endif // CC_TREES_PROXY_IMPL_H_ |
OLD | NEW |