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 CCThreadProxy_h | 5 #ifndef CCThreadProxy_h |
6 #define CCThreadProxy_h | 6 #define CCThreadProxy_h |
7 | 7 |
8 #include "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
9 #include "CCCompletionEvent.h" | 9 #include "CCCompletionEvent.h" |
10 #include "CCLayerTreeHostImpl.h" | 10 #include "CCLayerTreeHostImpl.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 ReadbackRequest* m_readbackRequestOnImplThread; | 160 ReadbackRequest* m_readbackRequestOnImplThread; |
161 | 161 |
162 // Set when the main thread is waiting on a commit to complete. | 162 // Set when the main thread is waiting on a commit to complete. |
163 CCCompletionEvent* m_commitCompletionEventOnImplThread; | 163 CCCompletionEvent* m_commitCompletionEventOnImplThread; |
164 | 164 |
165 // Set when the main thread is waiting on layers to be drawn. | 165 // Set when the main thread is waiting on layers to be drawn. |
166 CCCompletionEvent* m_textureAcquisitionCompletionEventOnImplThread; | 166 CCCompletionEvent* m_textureAcquisitionCompletionEventOnImplThread; |
167 | 167 |
168 OwnPtr<CCTextureUpdateController> m_currentTextureUpdateControllerOnImplThre
ad; | 168 OwnPtr<CCTextureUpdateController> m_currentTextureUpdateControllerOnImplThre
ad; |
169 | 169 |
170 // Set when we need to reset the contentsTexturesPurged flag after the | |
171 // commit. | |
172 bool m_resetContentsTexturesPurgedAfterCommitOnImplThread; | |
173 | |
174 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. | 170 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. |
175 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 171 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
176 | 172 |
177 bool m_renderVSyncEnabled; | 173 bool m_renderVSyncEnabled; |
178 | 174 |
179 base::TimeDelta m_totalCommitTime; | 175 base::TimeDelta m_totalCommitTime; |
180 size_t m_totalCommitCount; | 176 size_t m_totalCommitCount; |
181 }; | 177 }; |
182 | 178 |
183 } | 179 } |
184 | 180 |
185 #endif | 181 #endif |
OLD | NEW |