| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // CCTextureUpdateControllerClient implementation | 75 // CCTextureUpdateControllerClient implementation |
| 76 virtual void readyToFinalizeTextureUpdates() OVERRIDE; | 76 virtual void readyToFinalizeTextureUpdates() OVERRIDE; |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 explicit CCThreadProxy(CCLayerTreeHost*); | 79 explicit CCThreadProxy(CCLayerTreeHost*); |
| 80 friend class CCThreadProxyContextRecreationTimer; | 80 friend class CCThreadProxyContextRecreationTimer; |
| 81 | 81 |
| 82 // Set on impl thread, read on main thread. | 82 // Set on impl thread, read on main thread. |
| 83 struct BeginFrameAndCommitState { | 83 struct BeginFrameAndCommitState { |
| 84 BeginFrameAndCommitState() | 84 BeginFrameAndCommitState(); |
| 85 : monotonicFrameBeginTime(0) | 85 ~BeginFrameAndCommitState(); |
| 86 { | |
| 87 } | |
| 88 | 86 |
| 89 double monotonicFrameBeginTime; | 87 double monotonicFrameBeginTime; |
| 90 OwnPtr<CCScrollAndScaleSet> scrollInfo; | 88 OwnPtr<CCScrollAndScaleSet> scrollInfo; |
| 91 CCPrioritizedTextureManager::BackingVector evictedContentsTexturesBackin
gs; | 89 CCPrioritizedTextureManager::BackingVector evictedContentsTexturesBackin
gs; |
| 92 size_t memoryAllocationLimitBytes; | 90 size_t memoryAllocationLimitBytes; |
| 93 }; | 91 }; |
| 94 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; | 92 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; |
| 95 | 93 |
| 96 // Called on main thread | 94 // Called on main thread |
| 97 void beginFrame(); | 95 void beginFrame(); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 171 |
| 174 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. | 172 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. |
| 175 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 173 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
| 176 | 174 |
| 177 bool m_renderVSyncEnabled; | 175 bool m_renderVSyncEnabled; |
| 178 }; | 176 }; |
| 179 | 177 |
| 180 } | 178 } |
| 181 | 179 |
| 182 #endif | 180 #endif |
| OLD | NEW |