| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ~BeginFrameAndCommitState(); | 85 ~BeginFrameAndCommitState(); |
| 86 | 86 |
| 87 double monotonicFrameBeginTime; | 87 double monotonicFrameBeginTime; |
| 88 OwnPtr<CCScrollAndScaleSet> scrollInfo; | 88 OwnPtr<CCScrollAndScaleSet> scrollInfo; |
| 89 WebKit::WebTransformationMatrix implTransform; |
| 89 CCPrioritizedTextureManager::BackingVector evictedContentsTexturesBackin
gs; | 90 CCPrioritizedTextureManager::BackingVector evictedContentsTexturesBackin
gs; |
| 90 size_t memoryAllocationLimitBytes; | 91 size_t memoryAllocationLimitBytes; |
| 91 }; | 92 }; |
| 92 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; | 93 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; |
| 93 | 94 |
| 94 // Called on main thread | 95 // Called on main thread |
| 95 void beginFrame(); | 96 void beginFrame(); |
| 96 void didCommitAndDrawFrame(); | 97 void didCommitAndDrawFrame(); |
| 97 void didCompleteSwapBuffers(); | 98 void didCompleteSwapBuffers(); |
| 98 void setAnimationEvents(PassOwnPtr<CCAnimationEventsVector>, double wallCloc
kTime); | 99 void setAnimationEvents(PassOwnPtr<CCAnimationEventsVector>, double wallCloc
kTime); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 172 |
| 172 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. | 173 // Set when the next draw should post didCommitAndDrawFrame to the main thre
ad. |
| 173 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; | 174 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; |
| 174 | 175 |
| 175 bool m_renderVSyncEnabled; | 176 bool m_renderVSyncEnabled; |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } | 179 } |
| 179 | 180 |
| 180 #endif | 181 #endif |
| OLD | NEW |