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

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

Issue 191293004: cc: Rename FinishCommit to NotifyReadyToCommit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.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_STATE_MACHINE_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 // As SetNeedsCommit(), but ensures the BeginMainFrame will be sent even 193 // As SetNeedsCommit(), but ensures the BeginMainFrame will be sent even
194 // if we are not visible. After this call we expect to go through 194 // if we are not visible. After this call we expect to go through
195 // the forced commit flow and then return to waiting for a non-forced 195 // the forced commit flow and then return to waiting for a non-forced
196 // BeginMainFrame to finish. 196 // BeginMainFrame to finish.
197 void SetNeedsForcedCommitForReadback(); 197 void SetNeedsForcedCommitForReadback();
198 198
199 // Call this only in response to receiving an ACTION_SEND_BEGIN_MAIN_FRAME 199 // Call this only in response to receiving an ACTION_SEND_BEGIN_MAIN_FRAME
200 // from NextAction. 200 // from NextAction.
201 // Indicates that all painting is complete. 201 // Indicates that all painting is complete.
202 void FinishCommit(); 202 void NotifyReadyToCommit();
203 203
204 // Call this only in response to receiving an ACTION_SEND_BEGIN_MAIN_FRAME 204 // Call this only in response to receiving an ACTION_SEND_BEGIN_MAIN_FRAME
205 // from NextAction if the client rejects the BeginMainFrame message. 205 // from NextAction if the client rejects the BeginMainFrame message.
206 // If did_handle is false, then another commit will be retried soon. 206 // If did_handle is false, then another commit will be retried soon.
207 void BeginMainFrameAborted(bool did_handle); 207 void BeginMainFrameAborted(bool did_handle);
208 208
209 // Request exclusive access to the textures that back single buffered 209 // Request exclusive access to the textures that back single buffered
210 // layers on behalf of the main thread. Upon acquisition, 210 // layers on behalf of the main thread. Upon acquisition,
211 // ACTION_DRAW_AND_SWAP_IF_POSSIBLE will not draw until the main thread 211 // ACTION_DRAW_AND_SWAP_IF_POSSIBLE will not draw until the main thread
212 // releases the 212 // releases the
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 bool skip_next_begin_main_frame_to_reduce_latency_; 312 bool skip_next_begin_main_frame_to_reduce_latency_;
313 bool skip_begin_main_frame_to_reduce_latency_; 313 bool skip_begin_main_frame_to_reduce_latency_;
314 314
315 private: 315 private:
316 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 316 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
317 }; 317 };
318 318
319 } // namespace cc 319 } // namespace cc
320 320
321 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 321 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698