| 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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void SetNeedsCommit() override; | 48 void SetNeedsCommit() override; |
| 49 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 49 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
| 50 void SetNextCommitWaitsForActivation() override; | 50 void SetNextCommitWaitsForActivation() override; |
| 51 void NotifyInputThrottledUntilCommit() override {} | 51 void NotifyInputThrottledUntilCommit() override {} |
| 52 void SetDeferCommits(bool defer_commits) override; | 52 void SetDeferCommits(bool defer_commits) override; |
| 53 bool CommitRequested() const override; | 53 bool CommitRequested() const override; |
| 54 bool BeginMainFrameRequested() const override; | 54 bool BeginMainFrameRequested() const override; |
| 55 void MainThreadHasStoppedFlinging() override {} | 55 void MainThreadHasStoppedFlinging() override {} |
| 56 void Start() override; | 56 void Start() override; |
| 57 void Stop() override; | 57 void Stop() override; |
| 58 void ForceSerializeOnSwapBuffers() override; | |
| 59 bool SupportsImplScrolling() const override; | 58 bool SupportsImplScrolling() const override; |
| 60 bool MainFrameWillHappenForTesting() override; | 59 bool MainFrameWillHappenForTesting() override; |
| 61 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; | 60 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; |
| 62 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; | 61 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; |
| 63 | 62 |
| 64 // SchedulerClient implementation | 63 // SchedulerClient implementation |
| 65 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 64 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
| 66 void DidFinishImplFrame() override; | 65 void DidFinishImplFrame() override; |
| 67 void ScheduledActionSendBeginMainFrame() override; | 66 void ScheduledActionSendBeginMainFrame() override; |
| 68 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 67 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 private: | 229 private: |
| 231 DebugScopedSetImplThread impl_thread_; | 230 DebugScopedSetImplThread impl_thread_; |
| 232 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 231 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 233 | 232 |
| 234 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 233 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 235 }; | 234 }; |
| 236 | 235 |
| 237 } // namespace cc | 236 } // namespace cc |
| 238 | 237 |
| 239 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 238 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |