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_THREADED_CHANNEL_H_ | 5 #ifndef CC_TREES_THREADED_CHANNEL_H_ |
6 #define CC_TREES_THREADED_CHANNEL_H_ | 6 #define CC_TREES_THREADED_CHANNEL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const RendererCapabilities& capabilities) override; | 119 const RendererCapabilities& capabilities) override; |
120 void BeginMainFrameNotExpectedSoon() override; | 120 void BeginMainFrameNotExpectedSoon() override; |
121 void DidCommitAndDrawFrame() override; | 121 void DidCommitAndDrawFrame() override; |
122 void SetAnimationEvents(std::unique_ptr<AnimationEvents> events) override; | 122 void SetAnimationEvents(std::unique_ptr<AnimationEvents> events) override; |
123 void DidLoseOutputSurface() override; | 123 void DidLoseOutputSurface() override; |
124 void RequestNewOutputSurface() override; | 124 void RequestNewOutputSurface() override; |
125 void DidInitializeOutputSurface( | 125 void DidInitializeOutputSurface( |
126 bool success, | 126 bool success, |
127 const RendererCapabilities& capabilities) override; | 127 const RendererCapabilities& capabilities) override; |
128 void DidCompletePageScaleAnimation() override; | 128 void DidCompletePageScaleAnimation() override; |
129 void PostFrameTimingEventsOnMain( | |
130 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | |
131 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) | |
132 override; | |
133 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> | 129 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> |
134 begin_main_frame_state) override; | 130 begin_main_frame_state) override; |
135 | 131 |
136 protected: | 132 protected: |
137 ThreadedChannel(ProxyMain* proxy_main, | 133 ThreadedChannel(ProxyMain* proxy_main, |
138 TaskRunnerProvider* task_runner_provider); | 134 TaskRunnerProvider* task_runner_provider); |
139 | 135 |
140 // Virtual for testing. | 136 // Virtual for testing. |
141 virtual std::unique_ptr<ProxyImpl> CreateProxyImpl( | 137 virtual std::unique_ptr<ProxyImpl> CreateProxyImpl( |
142 ChannelImpl* channel_impl, | 138 ChannelImpl* channel_impl, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // Used on the main thread to safely queue calls to ProxyImpl to be run on the | 204 // Used on the main thread to safely queue calls to ProxyImpl to be run on the |
209 // impl thread. | 205 // impl thread. |
210 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 206 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
211 | 207 |
212 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); | 208 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); |
213 }; | 209 }; |
214 | 210 |
215 } // namespace cc | 211 } // namespace cc |
216 | 212 |
217 #endif // CC_TREES_THREADED_CHANNEL_H_ | 213 #endif // CC_TREES_THREADED_CHANNEL_H_ |
OLD | NEW |