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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 129 void PostFrameTimingEventsOnMain( |
130 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 130 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
131 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) | 131 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
132 override; | 132 override; |
133 void BeginMainFrame( | 133 void BeginMainFrame( |
134 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) override; | 134 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) override; |
135 | 135 |
136 // Should be called on impl thread only. | |
137 ProxyImpl* GetProxyImplForTesting() const; | |
138 | |
139 protected: | 136 protected: |
140 ThreadedChannel(ProxyMain* proxy_main, | 137 ThreadedChannel(ProxyMain* proxy_main, |
141 TaskRunnerProvider* task_runner_provider); | 138 TaskRunnerProvider* task_runner_provider); |
142 | 139 |
143 // Virtual for testing. | 140 // Virtual for testing. |
144 virtual scoped_ptr<ProxyImpl> CreateProxyImpl( | 141 virtual scoped_ptr<ProxyImpl> CreateProxyImpl( |
145 ChannelImpl* channel_impl, | 142 ChannelImpl* channel_impl, |
146 LayerTreeHost* layer_tree_host, | 143 LayerTreeHost* layer_tree_host, |
147 TaskRunnerProvider* task_runner_provider, | 144 TaskRunnerProvider* task_runner_provider, |
148 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 145 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Used on the main thread to safely queue calls to ProxyImpl to be run on the | 208 // Used on the main thread to safely queue calls to ProxyImpl to be run on the |
212 // impl thread. | 209 // impl thread. |
213 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 210 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
214 | 211 |
215 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); | 212 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); |
216 }; | 213 }; |
217 | 214 |
218 } // namespace cc | 215 } // namespace cc |
219 | 216 |
220 #endif // CC_TREES_THREADED_CHANNEL_H_ | 217 #endif // CC_TREES_THREADED_CHANNEL_H_ |
OLD | NEW |