| 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_THREAD_PROXY_H_ | 5 #ifndef CC_THREAD_PROXY_H_ |
| 6 #define CC_THREAD_PROXY_H_ | 6 #define CC_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "cc/animation_events.h" | 10 #include "cc/animation_events.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 virtual void sendManagedMemoryStats() OVERRIDE; | 66 virtual void sendManagedMemoryStats() OVERRIDE; |
| 67 | 67 |
| 68 // SchedulerClient implementation | 68 // SchedulerClient implementation |
| 69 virtual void scheduledActionBeginFrame() OVERRIDE; | 69 virtual void scheduledActionBeginFrame() OVERRIDE; |
| 70 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl
e() OVERRIDE; | 70 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl
e() OVERRIDE; |
| 71 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced()
OVERRIDE; | 71 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced()
OVERRIDE; |
| 72 virtual void scheduledActionCommit() OVERRIDE; | 72 virtual void scheduledActionCommit() OVERRIDE; |
| 73 virtual void scheduledActionBeginContextRecreation() OVERRIDE; | 73 virtual void scheduledActionBeginContextRecreation() OVERRIDE; |
| 74 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; | 74 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; |
| 75 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) OVERRIDE; | 75 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) OVERRIDE; |
| 76 virtual const LayerTreeSettings& settings() const OVERRIDE; |
| 76 | 77 |
| 77 // ResourceUpdateControllerClient implementation | 78 // ResourceUpdateControllerClient implementation |
| 78 virtual void readyToFinalizeTextureUpdates() OVERRIDE; | 79 virtual void readyToFinalizeTextureUpdates() OVERRIDE; |
| 79 | 80 |
| 80 private: | 81 private: |
| 81 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); | 82 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); |
| 82 | 83 |
| 83 // Set on impl thread, read on main thread. | 84 // Set on impl thread, read on main thread. |
| 84 struct BeginFrameAndCommitState { | 85 struct BeginFrameAndCommitState { |
| 85 BeginFrameAndCommitState(); | 86 BeginFrameAndCommitState(); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 base::TimeDelta m_totalCommitTime; | 176 base::TimeDelta m_totalCommitTime; |
| 176 size_t m_totalCommitCount; | 177 size_t m_totalCommitCount; |
| 177 | 178 |
| 178 bool m_deferCommits; | 179 bool m_deferCommits; |
| 179 bool m_deferredCommitPending; | 180 bool m_deferredCommitPending; |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 } // namespace cc | 183 } // namespace cc |
| 183 | 184 |
| 184 #endif // CC_THREAD_PROXY_H_ | 185 #endif // CC_THREAD_PROXY_H_ |
| OLD | NEW |