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

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: Tweaks; Address more 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 ScheduledActionDrawAndSwapIfPossible() OVERRIDE; 98 ScheduledActionDrawAndSwapIfPossible() OVERRIDE;
99 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced() 99 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced()
100 OVERRIDE; 100 OVERRIDE;
101 virtual void ScheduledActionCommit() OVERRIDE; 101 virtual void ScheduledActionCommit() OVERRIDE;
102 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE; 102 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE;
103 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE; 103 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE;
104 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE; 104 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE;
105 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; 105 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE;
106 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE; 106 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE;
107 virtual base::TimeDelta DrawDurationEstimate() OVERRIDE; 107 virtual base::TimeDelta DrawDurationEstimate() OVERRIDE;
108 virtual void PostBeginFrameDeadline(const base::Closure& closure,
109 base::TimeTicks deadline) OVERRIDE;
108 110
109 // ResourceUpdateControllerClient implementation 111 // ResourceUpdateControllerClient implementation
110 virtual void ReadyToFinalizeTextureUpdates() OVERRIDE; 112 virtual void ReadyToFinalizeTextureUpdates() OVERRIDE;
111 113
112 private: 114 private:
113 ThreadProxy(LayerTreeHost* layer_tree_host, 115 ThreadProxy(LayerTreeHost* layer_tree_host,
114 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); 116 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
115 117
116 struct BeginFrameAndCommitState { 118 struct BeginFrameAndCommitState {
117 BeginFrameAndCommitState(); 119 BeginFrameAndCommitState();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 bool renew_tree_priority_on_impl_thread_pending_; 251 bool renew_tree_priority_on_impl_thread_pending_;
250 252
251 RollingTimeDeltaHistory draw_duration_history_; 253 RollingTimeDeltaHistory draw_duration_history_;
252 254
253 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 255 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
254 }; 256 };
255 257
256 } // namespace cc 258 } // namespace cc
257 259
258 #endif // CC_TREES_THREAD_PROXY_H_ 260 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698