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

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

Issue 54913003: Scheduler: Switch from high to low latency mode if possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | cc/scheduler/scheduler_state_machine.h » ('J')
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 const SchedulerSettings& scheduler_settings); 126 const SchedulerSettings& scheduler_settings);
127 127
128 void PostBeginImplFrameDeadline(base::TimeTicks deadline); 128 void PostBeginImplFrameDeadline(base::TimeTicks deadline);
129 void SetupNextBeginImplFrameIfNeeded(); 129 void SetupNextBeginImplFrameIfNeeded();
130 void ActivatePendingTree(); 130 void ActivatePendingTree();
131 void DrawAndSwapIfPossible(); 131 void DrawAndSwapIfPossible();
132 void DrawAndSwapForced(); 132 void DrawAndSwapForced();
133 void DrawAndReadback(); 133 void DrawAndReadback();
134 void ProcessScheduledActions(); 134 void ProcessScheduledActions();
135 135
136 bool CanOperateInLowLatencyMode() const;
brianderson 2013/11/01 00:22:59 CanCommitAndDrawBeforeDeadline?
Dominik Grewe 2013/11/01 17:09:14 But we're drawing after the deadline, right? How a
137
136 const SchedulerSettings settings_; 138 const SchedulerSettings settings_;
137 SchedulerClient* client_; 139 SchedulerClient* client_;
138 140
139 bool last_set_needs_begin_impl_frame_; 141 bool last_set_needs_begin_impl_frame_;
140 BeginFrameArgs last_begin_impl_frame_args_; 142 BeginFrameArgs last_begin_impl_frame_args_;
141 base::CancelableClosure begin_impl_frame_deadline_closure_; 143 base::CancelableClosure begin_impl_frame_deadline_closure_;
142 base::CancelableClosure poll_for_draw_triggers_closure_; 144 base::CancelableClosure poll_for_draw_triggers_closure_;
143 145
144 SchedulerStateMachine state_machine_; 146 SchedulerStateMachine state_machine_;
145 bool inside_process_scheduled_actions_; 147 bool inside_process_scheduled_actions_;
146 SchedulerStateMachine::Action inside_action_; 148 SchedulerStateMachine::Action inside_action_;
147 149
148 base::WeakPtrFactory<Scheduler> weak_factory_; 150 base::WeakPtrFactory<Scheduler> weak_factory_;
149 151
150 DISALLOW_COPY_AND_ASSIGN(Scheduler); 152 DISALLOW_COPY_AND_ASSIGN(Scheduler);
151 }; 153 };
152 154
153 } // namespace cc 155 } // namespace cc
154 156
155 #endif // CC_SCHEDULER_SCHEDULER_H_ 157 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | cc/scheduler/scheduler_state_machine.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698