| 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 private: | 79 private: |
| 80 explicit CCThreadProxy(CCLayerTreeHost*); | 80 explicit CCThreadProxy(CCLayerTreeHost*); |
| 81 friend class CCThreadProxyContextRecreationTimer; | 81 friend class CCThreadProxyContextRecreationTimer; |
| 82 | 82 |
| 83 // Set on impl thread, read on main thread. | 83 // Set on impl thread, read on main thread. |
| 84 struct BeginFrameAndCommitState { | 84 struct BeginFrameAndCommitState { |
| 85 BeginFrameAndCommitState(); | 85 BeginFrameAndCommitState(); |
| 86 ~BeginFrameAndCommitState(); | 86 ~BeginFrameAndCommitState(); |
| 87 | 87 |
| 88 double monotonicFrameBeginTime; | 88 double monotonicFrameBeginTime; |
| 89 OwnPtr<CCScrollAndScaleSet> scrollInfo; | 89 scoped_ptr<CCScrollAndScaleSet> scrollInfo; |
| 90 WebKit::WebTransformationMatrix implTransform; | 90 WebKit::WebTransformationMatrix implTransform; |
| 91 CCPrioritizedTextureManager::BackingVector evictedContentsTexturesBackin
gs; | 91 CCPrioritizedTextureManager::BackingVector evictedContentsTexturesBackin
gs; |
| 92 size_t memoryAllocationLimitBytes; | 92 size_t memoryAllocationLimitBytes; |
| 93 }; | 93 }; |
| 94 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; | 94 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; |
| 95 | 95 |
| 96 // Called on main thread | 96 // Called on main thread |
| 97 void beginFrame(); | 97 void beginFrame(); |
| 98 void didCommitAndDrawFrame(); | 98 void didCommitAndDrawFrame(); |
| 99 void didCompleteSwapBuffers(); | 99 void didCompleteSwapBuffers(); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 bool m_renderVSyncEnabled; | 177 bool m_renderVSyncEnabled; |
| 178 | 178 |
| 179 base::TimeDelta m_totalCommitTime; | 179 base::TimeDelta m_totalCommitTime; |
| 180 size_t m_totalCommitCount; | 180 size_t m_totalCommitCount; |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 } | 183 } |
| 184 | 184 |
| 185 #endif | 185 #endif |
| OLD | NEW |