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

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

Issue 1014993002: [exp] cc: Introduce cc::CompositorMutator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 scoped_ptr<ResourceUpdateController> current_resource_update_controller; 124 scoped_ptr<ResourceUpdateController> current_resource_update_controller;
125 125
126 // Set when the next draw should post DidCommitAndDrawFrame to the main 126 // Set when the next draw should post DidCommitAndDrawFrame to the main
127 // thread. 127 // thread.
128 bool next_frame_is_newly_committed_frame; 128 bool next_frame_is_newly_committed_frame;
129 129
130 bool inside_draw; 130 bool inside_draw;
131 131
132 bool input_throttled_until_commit; 132 bool input_throttled_until_commit;
133 133
134 base::TimeTicks animation_time;
135
136 // Whether a commit has been completed since the last time animations were 134 // Whether a commit has been completed since the last time animations were
137 // ticked. If this happens, we need to animate again. 135 // ticked. If this happens, we need to animate again.
138 bool did_commit_after_animating; 136 bool did_commit_after_animating;
139 137
140 DelayedUniqueNotifier smoothness_priority_expiration_notifier; 138 DelayedUniqueNotifier smoothness_priority_expiration_notifier;
141 139
142 ProxyTimingHistory timing_history; 140 ProxyTimingHistory timing_history;
143 141
144 scoped_ptr<BeginFrameSource> external_begin_frame_source; 142 scoped_ptr<BeginFrameSource> external_begin_frame_source;
145 143
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void DidActivateSyncTree() override; 208 void DidActivateSyncTree() override;
211 void DidPrepareTiles() override; 209 void DidPrepareTiles() override;
212 void DidCompletePageScaleAnimationOnImplThread() override; 210 void DidCompletePageScaleAnimationOnImplThread() override;
213 211
214 // SchedulerClient implementation 212 // SchedulerClient implementation
215 void WillBeginImplFrame(const BeginFrameArgs& args) override; 213 void WillBeginImplFrame(const BeginFrameArgs& args) override;
216 void ScheduledActionSendBeginMainFrame() override; 214 void ScheduledActionSendBeginMainFrame() override;
217 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 215 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
218 DrawResult ScheduledActionDrawAndSwapForced() override; 216 DrawResult ScheduledActionDrawAndSwapForced() override;
219 void ScheduledActionAnimate() override; 217 void ScheduledActionAnimate() override;
218 void ScheduledActionCustomMutate() override;
220 void ScheduledActionCommit() override; 219 void ScheduledActionCommit() override;
221 void ScheduledActionActivateSyncTree() override; 220 void ScheduledActionActivateSyncTree() override;
222 void ScheduledActionBeginOutputSurfaceCreation() override; 221 void ScheduledActionBeginOutputSurfaceCreation() override;
223 void ScheduledActionPrepareTiles() override; 222 void ScheduledActionPrepareTiles() override;
224 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; 223 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override;
225 base::TimeDelta DrawDurationEstimate() override; 224 base::TimeDelta DrawDurationEstimate() override;
226 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; 225 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override;
227 base::TimeDelta CommitToActivateDurationEstimate() override; 226 base::TimeDelta CommitToActivateDurationEstimate() override;
228 void DidBeginImplFrameDeadline() override; 227 void DidBeginImplFrameDeadline() override;
229 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; 228 void SendBeginFramesToChildren(const BeginFrameArgs& args) override;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 301
303 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 302 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
304 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 303 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
305 304
306 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 305 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
307 }; 306 };
308 307
309 } // namespace cc 308 } // namespace cc
310 309
311 #endif // CC_TREES_THREAD_PROXY_H_ 310 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698