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

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: EXPECT_SCOPED Created 5 years 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
« no previous file with comments | « cc/output/output_surface_client.h ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 int layer_tree_host_id, 61 int layer_tree_host_id,
62 base::SingleThreadTaskRunner* task_runner, 62 base::SingleThreadTaskRunner* task_runner,
63 BeginFrameSource* external_frame_source, 63 BeginFrameSource* external_frame_source,
64 scoped_ptr<CompositorTimingHistory> compositor_timing_history); 64 scoped_ptr<CompositorTimingHistory> compositor_timing_history);
65 65
66 ~Scheduler() override; 66 ~Scheduler() override;
67 67
68 // BeginFrameObserverBase 68 // BeginFrameObserverBase
69 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override; 69 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override;
70 70
71 void OnDrawForOutputSurface(); 71 void OnDrawForOutputSurface(bool resourceless_software_draw);
72 72
73 const SchedulerSettings& settings() const { return settings_; } 73 const SchedulerSettings& settings() const { return settings_; }
74 74
75 void CommitVSyncParameters(base::TimeTicks timebase, 75 void CommitVSyncParameters(base::TimeTicks timebase,
76 base::TimeDelta interval); 76 base::TimeDelta interval);
77 void SetEstimatedParentDrawTime(base::TimeDelta draw_time); 77 void SetEstimatedParentDrawTime(base::TimeDelta draw_time);
78 78
79 void SetVisible(bool visible); 79 void SetVisible(bool visible);
80 bool visible() { return state_machine_.visible(); } 80 bool visible() { return state_machine_.visible(); }
81 void SetResourcelessSoftareDraw(bool resourceless_draw);
82 void SetCanDraw(bool can_draw); 81 void SetCanDraw(bool can_draw);
83 void NotifyReadyToActivate(); 82 void NotifyReadyToActivate();
84 void NotifyReadyToDraw(); 83 void NotifyReadyToDraw();
85 void SetThrottleFrameProduction(bool throttle); 84 void SetThrottleFrameProduction(bool throttle);
86 85
87 void SetNeedsBeginMainFrame(); 86 void SetNeedsBeginMainFrame();
88 // Requests a single impl frame (after the current frame if there is one 87 // Requests a single impl frame (after the current frame if there is one
89 // active). 88 // active).
90 void SetNeedsOneBeginImplFrame(); 89 void SetNeedsOneBeginImplFrame();
91 90
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 233 }
235 234
236 base::WeakPtrFactory<Scheduler> weak_factory_; 235 base::WeakPtrFactory<Scheduler> weak_factory_;
237 236
238 DISALLOW_COPY_AND_ASSIGN(Scheduler); 237 DISALLOW_COPY_AND_ASSIGN(Scheduler);
239 }; 238 };
240 239
241 } // namespace cc 240 } // namespace cc
242 241
243 #endif // CC_SCHEDULER_SCHEDULER_H_ 242 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface_client.h ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698