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

Side by Side Diff: cc/thread_proxy.h

Issue 11784030: Revert 175275 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_output_surface.h ('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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl e() OVERRIDE; 73 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossibl e() OVERRIDE;
74 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced() OVERRIDE; 74 virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced() OVERRIDE;
75 virtual void scheduledActionCommit() OVERRIDE; 75 virtual void scheduledActionCommit() OVERRIDE;
76 virtual void scheduledActionBeginContextRecreation() OVERRIDE; 76 virtual void scheduledActionBeginContextRecreation() OVERRIDE;
77 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; 77 virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE;
78 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) OVERRIDE; 78 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) OVERRIDE;
79 79
80 // ResourceUpdateControllerClient implementation 80 // ResourceUpdateControllerClient implementation
81 virtual void readyToFinalizeTextureUpdates() OVERRIDE; 81 virtual void readyToFinalizeTextureUpdates() OVERRIDE;
82 82
83 int maxFramesPendingForTesting() const { return m_schedulerOnImplThread->max FramesPending(); }
84
85 private: 83 private:
86 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread); 84 ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread);
87 85
88 struct BeginFrameAndCommitState { 86 struct BeginFrameAndCommitState {
89 BeginFrameAndCommitState(); 87 BeginFrameAndCommitState();
90 ~BeginFrameAndCommitState(); 88 ~BeginFrameAndCommitState();
91 89
92 base::TimeTicks monotonicFrameBeginTime; 90 base::TimeTicks monotonicFrameBeginTime;
93 scoped_ptr<ScrollAndScaleSet> scrollInfo; 91 scoped_ptr<ScrollAndScaleSet> scrollInfo;
94 gfx::Transform implTransform; 92 gfx::Transform implTransform;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 base::TimeDelta m_totalCommitTime; 186 base::TimeDelta m_totalCommitTime;
189 size_t m_totalCommitCount; 187 size_t m_totalCommitCount;
190 188
191 bool m_deferCommits; 189 bool m_deferCommits;
192 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; 190 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
193 }; 191 };
194 192
195 } // namespace cc 193 } // namespace cc
196 194
197 #endif // CC_THREAD_PROXY_H_ 195 #endif // CC_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698