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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual void readyToFinalizeTextureUpdates() OVERRIDE; | 83 virtual void readyToFinalizeTextureUpdates() OVERRIDE; |
84 | 84 |
85 private: | 85 private: |
86 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); | 86 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); |
87 | 87 |
88 struct BeginFrameAndCommitState { | 88 struct BeginFrameAndCommitState { |
89 BeginFrameAndCommitState(); | 89 BeginFrameAndCommitState(); |
90 ~BeginFrameAndCommitState(); | 90 ~BeginFrameAndCommitState(); |
91 | 91 |
92 base::TimeTicks monotonicFrameBeginTime; | 92 base::TimeTicks monotonicFrameBeginTime; |
| 93 base::Time wallClockFrameBeginTime; |
93 scoped_ptr<ScrollAndScaleSet> scrollInfo; | 94 scoped_ptr<ScrollAndScaleSet> scrollInfo; |
94 gfx::Transform implTransform; | 95 gfx::Transform implTransform; |
95 size_t memoryAllocationLimitBytes; | 96 size_t memoryAllocationLimitBytes; |
96 }; | 97 }; |
97 | 98 |
98 // Called on main thread | 99 // Called on main thread |
99 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); | 100 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); |
100 void didCommitAndDrawFrame(); | 101 void didCommitAndDrawFrame(); |
101 void didCompleteSwapBuffers(); | 102 void didCompleteSwapBuffers(); |
102 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl
ockTime); | 103 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl
ockTime); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 base::TimeDelta m_totalCommitTime; | 190 base::TimeDelta m_totalCommitTime; |
190 size_t m_totalCommitCount; | 191 size_t m_totalCommitCount; |
191 | 192 |
192 bool m_deferCommits; | 193 bool m_deferCommits; |
193 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; | 194 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; |
194 }; | 195 }; |
195 | 196 |
196 } // namespace cc | 197 } // namespace cc |
197 | 198 |
198 #endif // CC_THREAD_PROXY_H_ | 199 #endif // CC_THREAD_PROXY_H_ |
OLD | NEW |