OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_REMOTE_CHANNEL_IMPL_H_ | 5 #ifndef CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
6 #define CC_TREES_REMOTE_CHANNEL_IMPL_H_ | 6 #define CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 const RendererCapabilities& capabilities) override; | 173 const RendererCapabilities& capabilities) override; |
174 void BeginMainFrameNotExpectedSoon() override; | 174 void BeginMainFrameNotExpectedSoon() override; |
175 void DidCommitAndDrawFrame() override; | 175 void DidCommitAndDrawFrame() override; |
176 void SetAnimationEvents(std::unique_ptr<AnimationEvents> queue) override; | 176 void SetAnimationEvents(std::unique_ptr<AnimationEvents> queue) override; |
177 void DidLoseOutputSurface() override; | 177 void DidLoseOutputSurface() override; |
178 void RequestNewOutputSurface() override; | 178 void RequestNewOutputSurface() override; |
179 void DidInitializeOutputSurface( | 179 void DidInitializeOutputSurface( |
180 bool success, | 180 bool success, |
181 const RendererCapabilities& capabilities) override; | 181 const RendererCapabilities& capabilities) override; |
182 void DidCompletePageScaleAnimation() override; | 182 void DidCompletePageScaleAnimation() override; |
183 void PostFrameTimingEventsOnMain( | |
184 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | |
185 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) | |
186 override; | |
187 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> | 183 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> |
188 begin_main_frame_state) override; | 184 begin_main_frame_state) override; |
189 | 185 |
190 void SendMessageProto(std::unique_ptr<proto::CompositorMessage> proto); | 186 void SendMessageProto(std::unique_ptr<proto::CompositorMessage> proto); |
191 | 187 |
192 // called on main thread. | 188 // called on main thread. |
193 void HandleProto(const proto::CompositorMessageToImpl& proto); | 189 void HandleProto(const proto::CompositorMessageToImpl& proto); |
194 void DidLoseOutputSurfaceOnMain(); | 190 void DidLoseOutputSurfaceOnMain(); |
195 void RequestNewOutputSurfaceOnMain(); | 191 void RequestNewOutputSurfaceOnMain(); |
196 void DidInitializeOutputSurfaceOnMain( | 192 void DidInitializeOutputSurfaceOnMain( |
(...skipping 21 matching lines...) Expand all Loading... |
218 CompositorThreadOnly compositor_thread_vars_unsafe_; | 214 CompositorThreadOnly compositor_thread_vars_unsafe_; |
219 | 215 |
220 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 216 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
221 | 217 |
222 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); | 218 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); |
223 }; | 219 }; |
224 | 220 |
225 } // namespace cc | 221 } // namespace cc |
226 | 222 |
227 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ | 223 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
OLD | NEW |