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

Side by Side Diff: cc/scheduler/scheduler.h

Issue 1418273002: cc: Move draw params from SetExternalDrawConstraints to OnDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests fixed Created 5 years, 1 month 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_SCHEDULER_SCHEDULER_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_H_
6 #define CC_SCHEDULER_SCHEDULER_H_ 6 #define CC_SCHEDULER_SCHEDULER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 int layer_tree_host_id, 60 int layer_tree_host_id,
61 base::SingleThreadTaskRunner* task_runner, 61 base::SingleThreadTaskRunner* task_runner,
62 BeginFrameSource* external_frame_source, 62 BeginFrameSource* external_frame_source,
63 scoped_ptr<CompositorTimingHistory> compositor_timing_history); 63 scoped_ptr<CompositorTimingHistory> compositor_timing_history);
64 64
65 ~Scheduler() override; 65 ~Scheduler() override;
66 66
67 // BeginFrameObserverBase 67 // BeginFrameObserverBase
68 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override; 68 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override;
69 69
70 void OnDrawForOutputSurface(); 70 void OnDrawForOutputSurface(bool resourceless_software_draw);
71 71
72 const SchedulerSettings& settings() const { return settings_; } 72 const SchedulerSettings& settings() const { return settings_; }
73 73
74 void CommitVSyncParameters(base::TimeTicks timebase, 74 void CommitVSyncParameters(base::TimeTicks timebase,
75 base::TimeDelta interval); 75 base::TimeDelta interval);
76 void SetEstimatedParentDrawTime(base::TimeDelta draw_time); 76 void SetEstimatedParentDrawTime(base::TimeDelta draw_time);
77 77
78 void SetVisible(bool visible); 78 void SetVisible(bool visible);
79 bool visible() { return state_machine_.visible(); } 79 bool visible() { return state_machine_.visible(); }
80 void SetResourcelessSoftareDraw(bool resourceless_draw);
81 void SetCanDraw(bool can_draw); 80 void SetCanDraw(bool can_draw);
82 void NotifyReadyToActivate(); 81 void NotifyReadyToActivate();
83 void NotifyReadyToDraw(); 82 void NotifyReadyToDraw();
84 void SetThrottleFrameProduction(bool throttle); 83 void SetThrottleFrameProduction(bool throttle);
85 84
86 void SetNeedsBeginMainFrame(); 85 void SetNeedsBeginMainFrame();
87 86
88 void SetNeedsRedraw(); 87 void SetNeedsRedraw();
89 88
90 void SetNeedsAnimate(); 89 void SetNeedsAnimate();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 221 }
223 222
224 base::WeakPtrFactory<Scheduler> weak_factory_; 223 base::WeakPtrFactory<Scheduler> weak_factory_;
225 224
226 DISALLOW_COPY_AND_ASSIGN(Scheduler); 225 DISALLOW_COPY_AND_ASSIGN(Scheduler);
227 }; 226 };
228 227
229 } // namespace cc 228 } // namespace cc
230 229
231 #endif // CC_SCHEDULER_SCHEDULER_H_ 230 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698