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

Side by Side Diff: cc/trees/thread_proxy.h

Issue 16871016: cc: Use BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@bfargs2
Patch Set: address comments Created 7 years, 6 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_TREES_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 ScheduledActionDrawAndSwapIfPossible() OVERRIDE; 96 ScheduledActionDrawAndSwapIfPossible() OVERRIDE;
97 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced() 97 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced()
98 OVERRIDE; 98 OVERRIDE;
99 virtual void ScheduledActionCommit() OVERRIDE; 99 virtual void ScheduledActionCommit() OVERRIDE;
100 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE; 100 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE;
101 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE; 101 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE;
102 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE; 102 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE;
103 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; 103 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE;
104 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE; 104 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE;
105 virtual base::TimeDelta DrawDurationEstimate() OVERRIDE; 105 virtual base::TimeDelta DrawDurationEstimate() OVERRIDE;
106 virtual void PostBeginFrameDeadline(const base::Closure& closure,
107 base::TimeTicks deadline) OVERRIDE;
106 108
107 // ResourceUpdateControllerClient implementation 109 // ResourceUpdateControllerClient implementation
108 virtual void ReadyToFinalizeTextureUpdates() OVERRIDE; 110 virtual void ReadyToFinalizeTextureUpdates() OVERRIDE;
109 111
110 private: 112 private:
111 ThreadProxy(LayerTreeHost* layer_tree_host, scoped_ptr<Thread> impl_thread); 113 ThreadProxy(LayerTreeHost* layer_tree_host, scoped_ptr<Thread> impl_thread);
112 114
113 struct BeginFrameAndCommitState { 115 struct BeginFrameAndCommitState {
114 BeginFrameAndCommitState(); 116 BeginFrameAndCommitState();
115 ~BeginFrameAndCommitState(); 117 ~BeginFrameAndCommitState();
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 bool renew_tree_priority_on_impl_thread_pending_; 248 bool renew_tree_priority_on_impl_thread_pending_;
247 249
248 RollingTimeDeltaHistory draw_duration_history_; 250 RollingTimeDeltaHistory draw_duration_history_;
249 251
250 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 252 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
251 }; 253 };
252 254
253 } // namespace cc 255 } // namespace cc
254 256
255 #endif // CC_TREES_THREAD_PROXY_H_ 257 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698