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