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

Side by Side Diff: cc/thread_proxy.h

Issue 11783101: Make LayerTreeHost::animateLayers take a wall clock time in addition to a monotonic time (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 11 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
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 CC_THREAD_PROXY_H_ 5 #ifndef CC_THREAD_PROXY_H_
6 #define CC_THREAD_PROXY_H_ 6 #define CC_THREAD_PROXY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void readyToFinalizeTextureUpdates() OVERRIDE; 82 virtual void readyToFinalizeTextureUpdates() OVERRIDE;
83 83
84 private: 84 private:
85 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); 85 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread);
86 86
87 struct BeginFrameAndCommitState { 87 struct BeginFrameAndCommitState {
88 BeginFrameAndCommitState(); 88 BeginFrameAndCommitState();
89 ~BeginFrameAndCommitState(); 89 ~BeginFrameAndCommitState();
90 90
91 base::TimeTicks monotonicFrameBeginTime; 91 base::TimeTicks monotonicFrameBeginTime;
92 base::Time wallClockFrameBeginTime;
92 scoped_ptr<ScrollAndScaleSet> scrollInfo; 93 scoped_ptr<ScrollAndScaleSet> scrollInfo;
93 gfx::Transform implTransform; 94 gfx::Transform implTransform;
94 size_t memoryAllocationLimitBytes; 95 size_t memoryAllocationLimitBytes;
95 }; 96 };
96 97
97 // Called on main thread 98 // Called on main thread
98 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); 99 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState);
99 void didCommitAndDrawFrame(); 100 void didCommitAndDrawFrame();
100 void didCompleteSwapBuffers(); 101 void didCompleteSwapBuffers();
101 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime); 102 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 base::TimeDelta m_totalCommitTime; 189 base::TimeDelta m_totalCommitTime;
189 size_t m_totalCommitCount; 190 size_t m_totalCommitCount;
190 191
191 bool m_deferCommits; 192 bool m_deferCommits;
192 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; 193 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
193 }; 194 };
194 195
195 } // namespace cc 196 } // namespace cc
196 197
197 #endif // CC_THREAD_PROXY_H_ 198 #endif // CC_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698