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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 int maxFramesPendingForTesting() const { return m_schedulerOnImplThread->max
FramesPending(); } | 90 int maxFramesPendingForTesting() const { return m_schedulerOnImplThread->max
FramesPending(); } |
91 | 91 |
92 private: | 92 private: |
93 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); | 93 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); |
94 | 94 |
95 struct BeginFrameAndCommitState { | 95 struct BeginFrameAndCommitState { |
96 BeginFrameAndCommitState(); | 96 BeginFrameAndCommitState(); |
97 ~BeginFrameAndCommitState(); | 97 ~BeginFrameAndCommitState(); |
98 | 98 |
99 base::TimeTicks monotonicFrameBeginTime; | 99 base::TimeTicks monotonicFrameBeginTime; |
| 100 base::Time wallClockFrameBeginTime; |
100 scoped_ptr<ScrollAndScaleSet> scrollInfo; | 101 scoped_ptr<ScrollAndScaleSet> scrollInfo; |
101 gfx::Transform implTransform; | 102 gfx::Transform implTransform; |
102 size_t memoryAllocationLimitBytes; | 103 size_t memoryAllocationLimitBytes; |
103 }; | 104 }; |
104 | 105 |
105 // Called on main thread | 106 // Called on main thread |
106 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); | 107 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); |
107 void didCommitAndDrawFrame(); | 108 void didCommitAndDrawFrame(); |
108 void didCompleteSwapBuffers(); | 109 void didCompleteSwapBuffers(); |
109 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl
ockTime); | 110 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl
ockTime); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 bool m_deferCommits; | 207 bool m_deferCommits; |
207 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; | 208 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; |
208 | 209 |
209 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; | 210 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; |
210 bool m_renewTreePriorityOnImplThreadPending; | 211 bool m_renewTreePriorityOnImplThreadPending; |
211 }; | 212 }; |
212 | 213 |
213 } // namespace cc | 214 } // namespace cc |
214 | 215 |
215 #endif // CC_THREAD_PROXY_H_ | 216 #endif // CC_THREAD_PROXY_H_ |
OLD | NEW |