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

Side by Side Diff: cc/thread_proxy.h

Issue 11783037: Not for review: Enable accelerated animations for orphaned layers (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Wait for layout to complete before starting orphaned animations Created 7 years, 10 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/test/animation_test_common.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 int maxFramesPendingForTesting() const { return m_schedulerOnImplThread->max FramesPending(); } 90 int maxFramesPendingForTesting() const { return m_schedulerOnImplThread->max FramesPending(); }
91 91
92 private: 92 private:
93 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); 93 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread);
94 94
95 struct BeginFrameAndCommitState { 95 struct BeginFrameAndCommitState {
96 BeginFrameAndCommitState(); 96 BeginFrameAndCommitState();
97 ~BeginFrameAndCommitState(); 97 ~BeginFrameAndCommitState();
98 98
99 base::TimeTicks monotonicFrameBeginTime; 99 base::TimeTicks monotonicFrameBeginTime;
100 base::Time wallClockFrameBeginTime;
100 scoped_ptr<ScrollAndScaleSet> scrollInfo; 101 scoped_ptr<ScrollAndScaleSet> scrollInfo;
101 gfx::Transform implTransform; 102 gfx::Transform implTransform;
102 size_t memoryAllocationLimitBytes; 103 size_t memoryAllocationLimitBytes;
103 }; 104 };
104 105
105 // Called on main thread 106 // Called on main thread
106 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState); 107 void beginFrame(scoped_ptr<BeginFrameAndCommitState> beginFrameState);
107 void didCommitAndDrawFrame(); 108 void didCommitAndDrawFrame();
108 void didCompleteSwapBuffers(); 109 void didCompleteSwapBuffers();
109 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime); 110 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool m_deferCommits; 207 bool m_deferCommits;
207 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; 208 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
208 209
209 base::TimeTicks m_smoothnessTakesPriorityExpirationTime; 210 base::TimeTicks m_smoothnessTakesPriorityExpirationTime;
210 bool m_renewTreePriorityOnImplThreadPending; 211 bool m_renewTreePriorityOnImplThreadPending;
211 }; 212 };
212 213
213 } // namespace cc 214 } // namespace cc
214 215
215 #endif // CC_THREAD_PROXY_H_ 216 #endif // CC_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/test/animation_test_common.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698