| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 void SetNeedsCommit() override; | 165 void SetNeedsCommit() override; |
| 166 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 166 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
| 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; | |
| 176 bool SupportsImplScrolling() const override; | 175 bool SupportsImplScrolling() const override; |
| 177 bool MainFrameWillHappenForTesting() override; | 176 bool MainFrameWillHappenForTesting() override; |
| 178 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; | 177 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; |
| 179 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; | 178 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; |
| 180 | 179 |
| 181 // LayerTreeHostImplClient implementation | 180 // LayerTreeHostImplClient implementation |
| 182 void UpdateRendererCapabilitiesOnImplThread() override; | 181 void UpdateRendererCapabilitiesOnImplThread() override; |
| 183 void DidLoseOutputSurfaceOnImplThread() override; | 182 void DidLoseOutputSurfaceOnImplThread() override; |
| 184 void CommitVSyncParameters(base::TimeTicks timebase, | 183 void CommitVSyncParameters(base::TimeTicks timebase, |
| 185 base::TimeDelta interval) override; | 184 base::TimeDelta interval) override; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 void SetThrottleFrameProductionOnImplThread(bool throttle); | 269 void SetThrottleFrameProductionOnImplThread(bool throttle); |
| 271 void HasInitializedOutputSurfaceOnImplThread( | 270 void HasInitializedOutputSurfaceOnImplThread( |
| 272 CompletionEvent* completion, | 271 CompletionEvent* completion, |
| 273 bool* has_initialized_output_surface); | 272 bool* has_initialized_output_surface); |
| 274 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); | 273 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); |
| 275 void InitializeOutputSurfaceOnImplThread( | 274 void InitializeOutputSurfaceOnImplThread( |
| 276 scoped_ptr<OutputSurface> output_surface); | 275 scoped_ptr<OutputSurface> output_surface); |
| 277 void FinishGLOnImplThread(CompletionEvent* completion); | 276 void FinishGLOnImplThread(CompletionEvent* completion); |
| 278 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); | 277 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); |
| 279 DrawResult DrawSwapInternal(bool forced_draw); | 278 DrawResult DrawSwapInternal(bool forced_draw); |
| 280 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | |
| 281 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, | 279 void MainFrameWillHappenOnImplThreadForTesting(CompletionEvent* completion, |
| 282 bool* main_frame_will_happen); | 280 bool* main_frame_will_happen); |
| 283 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); | 281 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); |
| 284 void MainThreadHasStoppedFlingingOnImplThread(); | 282 void MainThreadHasStoppedFlingingOnImplThread(); |
| 285 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); | 283 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); |
| 286 void SetDeferCommitsOnImplThread(bool defer_commits) const; | 284 void SetDeferCommitsOnImplThread(bool defer_commits) const; |
| 287 void PostFrameTimingEvents( | 285 void PostFrameTimingEvents( |
| 288 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 286 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 289 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); | 287 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); |
| 290 | 288 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 305 | 303 |
| 306 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; | 304 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; |
| 307 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; | 305 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; |
| 308 | 306 |
| 309 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 307 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 310 }; | 308 }; |
| 311 | 309 |
| 312 } // namespace cc | 310 } // namespace cc |
| 313 | 311 |
| 314 #endif // CC_TREES_THREAD_PROXY_H_ | 312 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |