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

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

Issue 23892022: cc: Always use SetNeedsBeginFrame to request the next BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rename begin_frame_pending_; update swap comment; 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void DrawAndSwapIfPossible(); 112 void DrawAndSwapIfPossible();
113 void DrawAndSwapForced(); 113 void DrawAndSwapForced();
114 void DrawAndReadback(); 114 void DrawAndReadback();
115 void ProcessScheduledActions(); 115 void ProcessScheduledActions();
116 116
117 const SchedulerSettings settings_; 117 const SchedulerSettings settings_;
118 SchedulerClient* client_; 118 SchedulerClient* client_;
119 119
120 base::WeakPtrFactory<Scheduler> weak_factory_; 120 base::WeakPtrFactory<Scheduler> weak_factory_;
121 bool last_set_needs_begin_frame_; 121 bool last_set_needs_begin_frame_;
122 bool has_pending_begin_frame_;
123 BeginFrameArgs last_begin_frame_args_; 122 BeginFrameArgs last_begin_frame_args_;
124 base::CancelableClosure poll_for_draw_triggers_closure_; 123 base::CancelableClosure poll_for_draw_triggers_closure_;
125 124
126 SchedulerStateMachine state_machine_; 125 SchedulerStateMachine state_machine_;
127 bool inside_process_scheduled_actions_; 126 bool inside_process_scheduled_actions_;
128 127
129 DISALLOW_COPY_AND_ASSIGN(Scheduler); 128 DISALLOW_COPY_AND_ASSIGN(Scheduler);
130 }; 129 };
131 130
132 } // namespace cc 131 } // namespace cc
133 132
134 #endif // CC_SCHEDULER_SCHEDULER_H_ 133 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698