Chromium Code Reviews| 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; | 177 void SetDebugState(const LayerTreeDebugState& debug_state) override{}; |
|
danakj
2015/09/03 20:01:21
I mean you can delete this function, it doesn't ne
samli
2015/09/09 23:55:51
Removed.
| |
| 178 bool MainFrameWillHappenForTesting() override; | 178 bool MainFrameWillHappenForTesting() override; |
| 179 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; | 179 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; |
| 180 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; | 180 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; |
| 181 | 181 |
| 182 // LayerTreeHostImplClient implementation | 182 // LayerTreeHostImplClient implementation |
| 183 void UpdateRendererCapabilitiesOnImplThread() override; | 183 void UpdateRendererCapabilitiesOnImplThread() override; |
| 184 void DidLoseOutputSurfaceOnImplThread() override; | 184 void DidLoseOutputSurfaceOnImplThread() override; |
| 185 void CommitVSyncParameters(base::TimeTicks timebase, | 185 void CommitVSyncParameters(base::TimeTicks timebase, |
| 186 base::TimeDelta interval) override; | 186 base::TimeDelta interval) override; |
| 187 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; | 187 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); | 277 scoped_ptr<OutputSurface> output_surface); |
| 278 void FinishGLOnImplThread(CompletionEvent* completion); | 278 void FinishGLOnImplThread(CompletionEvent* completion); |
| 279 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); | 279 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); |
| 280 DrawResult DrawSwapInternal(bool forced_draw); | 280 DrawResult DrawSwapInternal(bool forced_draw); |
| 281 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 281 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
| 282 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, | 282 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, |
| 283 bool* main_frame_will_happen); | 283 bool* main_frame_will_happen); |
| 284 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); | 284 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); |
| 285 void MainThreadHasStoppedFlingingOnImplThread(); | 285 void MainThreadHasStoppedFlingingOnImplThread(); |
| 286 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 286 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); |
| 287 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state); | |
| 288 void SetDeferCommitsOnImplThread(bool defer_commits) const; | 287 void SetDeferCommitsOnImplThread(bool defer_commits) const; |
| 289 void PostFrameTimingEvents( | 288 void PostFrameTimingEvents( |
| 290 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 289 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 291 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); | 290 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); |
| 292 | 291 |
| 293 LayerTreeHost* layer_tree_host(); | 292 LayerTreeHost* layer_tree_host(); |
| 294 const LayerTreeHost* layer_tree_host() const; | 293 const LayerTreeHost* layer_tree_host() const; |
| 295 | 294 |
| 296 // Use accessors instead of this variable directly. | 295 // Use accessors instead of this variable directly. |
| 297 MainThreadOnly main_thread_only_vars_unsafe_; | 296 MainThreadOnly main_thread_only_vars_unsafe_; |
| 298 MainThreadOnly& main(); | 297 MainThreadOnly& main(); |
| 299 | 298 |
| 300 // Use accessors instead of this variable directly. | 299 // Use accessors instead of this variable directly. |
| 301 MainThreadOrBlockedMainThread main_thread_or_blocked_vars_unsafe_; | 300 MainThreadOrBlockedMainThread main_thread_or_blocked_vars_unsafe_; |
| 302 MainThreadOrBlockedMainThread& blocked_main(); | 301 MainThreadOrBlockedMainThread& blocked_main(); |
| 303 | 302 |
| 304 // Use accessors instead of this variable directly. | 303 // Use accessors instead of this variable directly. |
| 305 CompositorThreadOnly compositor_thread_vars_unsafe_; | 304 CompositorThreadOnly compositor_thread_vars_unsafe_; |
| 306 CompositorThreadOnly& impl(); | 305 CompositorThreadOnly& impl(); |
| 307 | 306 |
| 308 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 307 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 309 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 308 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 310 | 309 |
| 311 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 310 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 312 }; | 311 }; |
| 313 | 312 |
| 314 } // namespace cc | 313 } // namespace cc |
| 315 | 314 |
| 316 #endif // CC_TREES_THREAD_PROXY_H_ | 315 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |