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

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: 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual ScheduledActionDrawAndSwapResult 94 virtual ScheduledActionDrawAndSwapResult
95 ScheduledActionDrawAndSwapIfPossible() OVERRIDE; 95 ScheduledActionDrawAndSwapIfPossible() OVERRIDE;
96 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced() 96 virtual ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapForced()
97 OVERRIDE; 97 OVERRIDE;
98 virtual void ScheduledActionCommit() OVERRIDE; 98 virtual void ScheduledActionCommit() OVERRIDE;
99 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE; 99 virtual void ScheduledActionCheckForCompletedTileUploads() OVERRIDE;
100 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE; 100 virtual void ScheduledActionActivatePendingTreeIfNeeded() OVERRIDE;
101 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE; 101 virtual void ScheduledActionBeginOutputSurfaceCreation() OVERRIDE;
102 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE; 102 virtual void ScheduledActionAcquireLayerTexturesForMainThread() OVERRIDE;
103 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE; 103 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) OVERRIDE;
104 virtual void PostBeginFrameDeadlineTask(base::TimeTicks deadline) OVERRIDE;
104 105
105 // ResourceUpdateControllerClient implementation 106 // ResourceUpdateControllerClient implementation
106 virtual void ReadyToFinalizeTextureUpdates() OVERRIDE; 107 virtual void ReadyToFinalizeTextureUpdates() OVERRIDE;
107 108
108 private: 109 private:
109 ThreadProxy(LayerTreeHost* layer_tree_host, scoped_ptr<Thread> impl_thread); 110 ThreadProxy(LayerTreeHost* layer_tree_host, scoped_ptr<Thread> impl_thread);
110 111
111 struct BeginFrameAndCommitState { 112 struct BeginFrameAndCommitState {
112 BeginFrameAndCommitState(); 113 BeginFrameAndCommitState();
113 ~BeginFrameAndCommitState(); 114 ~BeginFrameAndCommitState();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void SchedulerStateAsStringOnImplThreadForTesting( 168 void SchedulerStateAsStringOnImplThreadForTesting(
168 SchedulerStateRequest* request); 169 SchedulerStateRequest* request);
169 void CapturePictureOnImplThread(CompletionEvent* completion, 170 void CapturePictureOnImplThread(CompletionEvent* completion,
170 skia::RefPtr<SkPicture>* picture); 171 skia::RefPtr<SkPicture>* picture);
171 void AsValueOnImplThread(CompletionEvent* completion, 172 void AsValueOnImplThread(CompletionEvent* completion,
172 base::DictionaryValue* state) const; 173 base::DictionaryValue* state) const;
173 void RenewTreePriorityOnImplThread(); 174 void RenewTreePriorityOnImplThread();
174 void DidSwapUseIncompleteTileOnImplThread(); 175 void DidSwapUseIncompleteTileOnImplThread();
175 void StartScrollbarAnimationOnImplThread(); 176 void StartScrollbarAnimationOnImplThread();
176 void MainThreadHasStoppedFlingingOnImplThread(); 177 void MainThreadHasStoppedFlingingOnImplThread();
178 void OnBeginFrameDeadline();
177 179
178 // Accessed on main thread only. 180 // Accessed on main thread only.
179 181
180 // Set only when SetNeedsAnimate is called. 182 // Set only when SetNeedsAnimate is called.
181 bool animate_requested_; 183 bool animate_requested_;
182 // Set only when SetNeedsCommit is called. 184 // Set only when SetNeedsCommit is called.
183 bool commit_requested_; 185 bool commit_requested_;
184 // Set by SetNeedsCommit and SetNeedsAnimate. 186 // Set by SetNeedsCommit and SetNeedsAnimate.
185 bool commit_request_sent_to_impl_thread_; 187 bool commit_request_sent_to_impl_thread_;
186 // Set by BeginFrameOnMainThread 188 // Set by BeginFrameOnMainThread
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 244
243 base::TimeTicks smoothness_takes_priority_expiration_time_; 245 base::TimeTicks smoothness_takes_priority_expiration_time_;
244 bool renew_tree_priority_on_impl_thread_pending_; 246 bool renew_tree_priority_on_impl_thread_pending_;
245 247
246 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 248 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
247 }; 249 };
248 250
249 } // namespace cc 251 } // namespace cc
250 252
251 #endif // CC_TREES_THREAD_PROXY_H_ 253 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698