| 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/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; | 46 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; |
| 47 virtual bool CommitRequested() const OVERRIDE; | 47 virtual bool CommitRequested() const OVERRIDE; |
| 48 virtual bool BeginMainFrameRequested() const OVERRIDE; | 48 virtual bool BeginMainFrameRequested() const OVERRIDE; |
| 49 virtual void MainThreadHasStoppedFlinging() OVERRIDE {} | 49 virtual void MainThreadHasStoppedFlinging() OVERRIDE {} |
| 50 virtual void Start() OVERRIDE; | 50 virtual void Start() OVERRIDE; |
| 51 virtual void Stop() OVERRIDE; | 51 virtual void Stop() OVERRIDE; |
| 52 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 52 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 53 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 53 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 54 virtual bool SupportsImplScrolling() const OVERRIDE; | 54 virtual bool SupportsImplScrolling() const OVERRIDE; |
| 55 virtual void AsValueInto(base::debug::TracedValue* state) const OVERRIDE; | 55 virtual void AsValueInto(base::debug::TracedValue* state) const OVERRIDE; |
| 56 virtual bool CommitPendingForTesting() OVERRIDE; | 56 virtual bool MainFrameWillHappenForTesting() OVERRIDE; |
| 57 | 57 |
| 58 // SchedulerClient implementation | 58 // SchedulerClient implementation |
| 59 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE; | 59 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE; |
| 60 virtual void WillBeginImplFrame(const BeginFrameArgs& args) OVERRIDE; | 60 virtual void WillBeginImplFrame(const BeginFrameArgs& args) OVERRIDE; |
| 61 virtual void ScheduledActionSendBeginMainFrame() OVERRIDE; | 61 virtual void ScheduledActionSendBeginMainFrame() OVERRIDE; |
| 62 virtual DrawResult ScheduledActionDrawAndSwapIfPossible() OVERRIDE; | 62 virtual DrawResult ScheduledActionDrawAndSwapIfPossible() OVERRIDE; |
| 63 virtual DrawResult ScheduledActionDrawAndSwapForced() OVERRIDE; | 63 virtual DrawResult ScheduledActionDrawAndSwapForced() OVERRIDE; |
| 64 virtual void ScheduledActionCommit() OVERRIDE; | 64 virtual void ScheduledActionCommit() OVERRIDE; |
| 65 virtual void ScheduledActionAnimate() OVERRIDE; | 65 virtual void ScheduledActionAnimate() OVERRIDE; |
| 66 virtual void ScheduledActionUpdateVisibleTiles() OVERRIDE; | 66 virtual void ScheduledActionUpdateVisibleTiles() OVERRIDE; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 private: | 212 private: |
| 213 DebugScopedSetImplThread impl_thread_; | 213 DebugScopedSetImplThread impl_thread_; |
| 214 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 214 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 215 | 215 |
| 216 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 216 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 } // namespace cc | 219 } // namespace cc |
| 220 | 220 |
| 221 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 221 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |