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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 private: | 80 private: |
81 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); | 81 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); |
82 | 82 |
83 struct BeginFrameAndCommitState { | 83 struct BeginFrameAndCommitState { |
84 BeginFrameAndCommitState(); | 84 BeginFrameAndCommitState(); |
85 ~BeginFrameAndCommitState(); | 85 ~BeginFrameAndCommitState(); |
86 | 86 |
87 base::TimeTicks monotonicFrameBeginTime; | 87 base::TimeTicks monotonicFrameBeginTime; |
88 scoped_ptr<ScrollAndScaleSet> scrollInfo; | 88 scoped_ptr<ScrollAndScaleSet> scrollInfo; |
89 WebKit::WebTransformationMatrix implTransform; | 89 gfx::Transform implTransform; |
90 PrioritizedResourceManager::BackingList evictedContentsTexturesBackings; | 90 PrioritizedResourceManager::BackingList evictedContentsTexturesBackings; |
91 size_t memoryAllocationLimitBytes; | 91 size_t memoryAllocationLimitBytes; |
92 }; | 92 }; |
93 | 93 |
94 // Called on main thread | 94 // Called on main thread |
95 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); | 95 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); |
96 void didCommitAndDrawFrame(); | 96 void didCommitAndDrawFrame(); |
97 void didCompleteSwapBuffers(); | 97 void didCompleteSwapBuffers(); |
98 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl
ockTime); | 98 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl
ockTime); |
99 void beginContextRecreation(); | 99 void beginContextRecreation(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 base::TimeDelta m_totalCommitTime; | 172 base::TimeDelta m_totalCommitTime; |
173 size_t m_totalCommitCount; | 173 size_t m_totalCommitCount; |
174 | 174 |
175 bool m_deferCommits; | 175 bool m_deferCommits; |
176 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; | 176 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; |
177 }; | 177 }; |
178 | 178 |
179 } // namespace cc | 179 } // namespace cc |
180 | 180 |
181 #endif // CC_THREAD_PROXY_H_ | 181 #endif // CC_THREAD_PROXY_H_ |
OLD | NEW |