Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: cc/CCThreadProxy.h

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Reduce number of prepared tiles and correct existing tests. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 : monotonicFrameBeginTime(0)
86 { 86 {
87 } 87 }
88 88
89 double monotonicFrameBeginTime; 89 double monotonicFrameBeginTime;
90 OwnPtr<CCScrollAndScaleSet> scrollInfo; 90 OwnPtr<CCScrollAndScaleSet> scrollInfo;
91 WebKit::WebTransformationMatrix implTransform;
91 CCPrioritizedTextureManager::BackingVector evictedContentsTexturesBackin gs; 92 CCPrioritizedTextureManager::BackingVector evictedContentsTexturesBackin gs;
92 size_t memoryAllocationLimitBytes; 93 size_t memoryAllocationLimitBytes;
93 }; 94 };
94 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest; 95 OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest;
95 96
96 // Called on main thread 97 // Called on main thread
97 void beginFrame(); 98 void beginFrame();
98 void didCommitAndDrawFrame(); 99 void didCommitAndDrawFrame();
99 void didCompleteSwapBuffers(); 100 void didCompleteSwapBuffers();
100 void setAnimationEvents(PassOwnPtr<CCAnimationEventsVector>, double wallCloc kTime); 101 void setAnimationEvents(PassOwnPtr<CCAnimationEventsVector>, double wallCloc kTime);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 174
174 // Set when the next draw should post didCommitAndDrawFrame to the main thre ad. 175 // Set when the next draw should post didCommitAndDrawFrame to the main thre ad.
175 bool m_nextFrameIsNewlyCommittedFrameOnImplThread; 176 bool m_nextFrameIsNewlyCommittedFrameOnImplThread;
176 177
177 bool m_renderVSyncEnabled; 178 bool m_renderVSyncEnabled;
178 }; 179 };
179 180
180 } 181 }
181 182
182 #endif 183 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698