| 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/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl
e() OVERRIDE; | 74 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl
e() OVERRIDE; |
| 75 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced()
OVERRIDE; | 75 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced()
OVERRIDE; |
| 76 virtual void scheduledActionCommit() OVERRIDE; | 76 virtual void scheduledActionCommit() OVERRIDE; |
| 77 virtual void scheduledActionBeginContextRecreation() OVERRIDE; | 77 virtual void scheduledActionBeginContextRecreation() OVERRIDE; |
| 78 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; | 78 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; |
| 79 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) OVERRIDE; | 79 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) OVERRIDE; |
| 80 | 80 |
| 81 // ResourceUpdateControllerClient implementation | 81 // ResourceUpdateControllerClient implementation |
| 82 virtual void readyToFinalizeTextureUpdates() OVERRIDE; | 82 virtual void readyToFinalizeTextureUpdates() OVERRIDE; |
| 83 | 83 |
| 84 int maxFramesPendingForTesting() const { return m_schedulerOnImplThread->max
FramesPending(); } |
| 85 |
| 84 private: | 86 private: |
| 85 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); | 87 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); |
| 86 | 88 |
| 87 struct BeginFrameAndCommitState { | 89 struct BeginFrameAndCommitState { |
| 88 BeginFrameAndCommitState(); | 90 BeginFrameAndCommitState(); |
| 89 ~BeginFrameAndCommitState(); | 91 ~BeginFrameAndCommitState(); |
| 90 | 92 |
| 91 base::TimeTicks monotonicFrameBeginTime; | 93 base::TimeTicks monotonicFrameBeginTime; |
| 92 scoped_ptr<ScrollAndScaleSet> scrollInfo; | 94 scoped_ptr<ScrollAndScaleSet> scrollInfo; |
| 93 gfx::Transform implTransform; | 95 gfx::Transform implTransform; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 base::TimeDelta m_totalCommitTime; | 188 base::TimeDelta m_totalCommitTime; |
| 187 size_t m_totalCommitCount; | 189 size_t m_totalCommitCount; |
| 188 | 190 |
| 189 bool m_deferCommits; | 191 bool m_deferCommits; |
| 190 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; | 192 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; |
| 191 }; | 193 }; |
| 192 | 194 |
| 193 } // namespace cc | 195 } // namespace cc |
| 194 | 196 |
| 195 #endif // CC_THREAD_PROXY_H_ | 197 #endif // CC_THREAD_PROXY_H_ |
| OLD | NEW |