OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 void SetNextCommitWaitsForActivation() override; | 167 void SetNextCommitWaitsForActivation() override; |
168 void NotifyInputThrottledUntilCommit() override; | 168 void NotifyInputThrottledUntilCommit() override; |
169 void SetDeferCommits(bool defer_commits) override; | 169 void SetDeferCommits(bool defer_commits) override; |
170 bool CommitRequested() const override; | 170 bool CommitRequested() const override; |
171 bool BeginMainFrameRequested() const override; | 171 bool BeginMainFrameRequested() const override; |
172 void MainThreadHasStoppedFlinging() override; | 172 void MainThreadHasStoppedFlinging() override; |
173 void Start() override; | 173 void Start() override; |
174 void Stop() override; | 174 void Stop() override; |
175 void ForceSerializeOnSwapBuffers() override; | 175 void ForceSerializeOnSwapBuffers() override; |
176 bool SupportsImplScrolling() const override; | 176 bool SupportsImplScrolling() const override; |
177 void SetDebugState(const LayerTreeDebugState& debug_state) override; | |
178 bool MainFrameWillHappenForTesting() override; | 177 bool MainFrameWillHappenForTesting() override; |
179 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; | 178 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; |
180 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; | 179 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; |
181 | 180 |
182 // LayerTreeHostImplClient implementation | 181 // LayerTreeHostImplClient implementation |
183 void UpdateRendererCapabilitiesOnImplThread() override; | 182 void UpdateRendererCapabilitiesOnImplThread() override; |
184 void DidLoseOutputSurfaceOnImplThread() override; | 183 void DidLoseOutputSurfaceOnImplThread() override; |
185 void CommitVSyncParameters(base::TimeTicks timebase, | 184 void CommitVSyncParameters(base::TimeTicks timebase, |
186 base::TimeDelta interval) override; | 185 base::TimeDelta interval) override; |
187 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 186 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 scoped_ptr<OutputSurface> output_surface); | 276 scoped_ptr<OutputSurface> output_surface); |
278 void FinishGLOnImplThread(CompletionEvent* completion); | 277 void FinishGLOnImplThread(CompletionEvent* completion); |
279 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); | 278 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); |
280 DrawResult DrawSwapInternal(bool forced_draw); | 279 DrawResult DrawSwapInternal(bool forced_draw); |
281 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 280 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
282 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, | 281 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, |
283 bool* main_frame_will_happen); | 282 bool* main_frame_will_happen); |
284 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); | 283 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); |
285 void MainThreadHasStoppedFlingingOnImplThread(); | 284 void MainThreadHasStoppedFlingingOnImplThread(); |
286 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 285 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); |
287 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state); | |
288 void SetDeferCommitsOnImplThread(bool defer_commits) const; | 286 void SetDeferCommitsOnImplThread(bool defer_commits) const; |
289 void PostFrameTimingEvents( | 287 void PostFrameTimingEvents( |
290 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 288 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
291 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); | 289 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); |
292 | 290 |
293 LayerTreeHost* layer_tree_host(); | 291 LayerTreeHost* layer_tree_host(); |
294 const LayerTreeHost* layer_tree_host() const; | 292 const LayerTreeHost* layer_tree_host() const; |
295 | 293 |
296 // Use accessors instead of this variable directly. | 294 // Use accessors instead of this variable directly. |
297 MainThreadOnly main_thread_only_vars_unsafe_; | 295 MainThreadOnly main_thread_only_vars_unsafe_; |
298 MainThreadOnly& main(); | 296 MainThreadOnly& main(); |
299 | 297 |
300 // Use accessors instead of this variable directly. | 298 // Use accessors instead of this variable directly. |
301 MainThreadOrBlockedMainThread main_thread_or_blocked_vars_unsafe_; | 299 MainThreadOrBlockedMainThread main_thread_or_blocked_vars_unsafe_; |
302 MainThreadOrBlockedMainThread& blocked_main(); | 300 MainThreadOrBlockedMainThread& blocked_main(); |
303 | 301 |
304 // Use accessors instead of this variable directly. | 302 // Use accessors instead of this variable directly. |
305 CompositorThreadOnly compositor_thread_vars_unsafe_; | 303 CompositorThreadOnly compositor_thread_vars_unsafe_; |
306 CompositorThreadOnly& impl(); | 304 CompositorThreadOnly& impl(); |
307 | 305 |
308 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 306 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
309 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 307 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
310 | 308 |
311 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 309 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
312 }; | 310 }; |
313 | 311 |
314 } // namespace cc | 312 } // namespace cc |
315 | 313 |
316 #endif // CC_TREES_THREAD_PROXY_H_ | 314 #endif // CC_TREES_THREAD_PROXY_H_ |
OLD | NEW |