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

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

Issue 23498035: cc: Always use SetNeedsBeginFrame to request the next BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@epenner23495022
Patch Set: Created 7 years, 3 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_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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void DrawAndSwapIfPossible(); 122 void DrawAndSwapIfPossible();
123 void DrawAndSwapForced(); 123 void DrawAndSwapForced();
124 void DrawAndReadback(); 124 void DrawAndReadback();
125 void ProcessScheduledActions(); 125 void ProcessScheduledActions();
126 126
127 const SchedulerSettings settings_; 127 const SchedulerSettings settings_;
128 SchedulerClient* client_; 128 SchedulerClient* client_;
129 129
130 base::WeakPtrFactory<Scheduler> weak_factory_; 130 base::WeakPtrFactory<Scheduler> weak_factory_;
131 bool last_set_needs_begin_frame_; 131 bool last_set_needs_begin_frame_;
132 bool has_pending_begin_frame_;
133 BeginFrameArgs last_begin_frame_args_; 132 BeginFrameArgs last_begin_frame_args_;
134 base::CancelableClosure poll_for_draw_triggers_closure_; 133 base::CancelableClosure poll_for_draw_triggers_closure_;
135 134
136 SchedulerStateMachine state_machine_; 135 SchedulerStateMachine state_machine_;
137 bool inside_process_scheduled_actions_; 136 bool inside_process_scheduled_actions_;
138 SchedulerStateMachine::Action inside_action_; 137 SchedulerStateMachine::Action inside_action_;
139 138
140 DISALLOW_COPY_AND_ASSIGN(Scheduler); 139 DISALLOW_COPY_AND_ASSIGN(Scheduler);
141 }; 140 };
142 141
143 } // namespace cc 142 } // namespace cc
144 143
145 #endif // CC_SCHEDULER_SCHEDULER_H_ 144 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698