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

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: Fix nits 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
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual void readyToFinalizeTextureUpdates() OVERRIDE; 83 virtual void readyToFinalizeTextureUpdates() OVERRIDE;
84 84
85 private: 85 private:
86 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); 86 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread);
87 87
88 struct BeginFrameAndCommitState { 88 struct BeginFrameAndCommitState {
89 BeginFrameAndCommitState(); 89 BeginFrameAndCommitState();
90 ~BeginFrameAndCommitState(); 90 ~BeginFrameAndCommitState();
91 91
92 base::TimeTicks monotonicFrameBeginTime; 92 base::TimeTicks monotonicFrameBeginTime;
93 base::Time wallClockFrameBeginTime;
93 scoped_ptr<ScrollAndScaleSet> scrollInfo; 94 scoped_ptr<ScrollAndScaleSet> scrollInfo;
94 gfx::Transform implTransform; 95 gfx::Transform implTransform;
95 size_t memoryAllocationLimitBytes; 96 size_t memoryAllocationLimitBytes;
96 }; 97 };
97 98
98 // Called on main thread 99 // Called on main thread
99 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); 100 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState);
100 void didCommitAndDrawFrame(); 101 void didCommitAndDrawFrame();
101 void didCompleteSwapBuffers(); 102 void didCompleteSwapBuffers();
102 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime); 103 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 base::TimeDelta m_totalCommitTime; 190 base::TimeDelta m_totalCommitTime;
190 size_t m_totalCommitCount; 191 size_t m_totalCommitCount;
191 192
192 bool m_deferCommits; 193 bool m_deferCommits;
193 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; 194 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
194 }; 195 };
195 196
196 } // namespace cc 197 } // namespace cc
197 198
198 #endif // CC_THREAD_PROXY_H_ 199 #endif // CC_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698