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

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

Issue 14195025: Keep vsync enabled while there is a pending requestAnimationFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void DidSwapUseIncompleteTile(); 95 void DidSwapUseIncompleteTile();
96 96
97 // Indicates whether ACTION_DRAW_IF_POSSIBLE drew to the screen or not. 97 // Indicates whether ACTION_DRAW_IF_POSSIBLE drew to the screen or not.
98 void DidDrawIfPossibleCompleted(bool success); 98 void DidDrawIfPossibleCompleted(bool success);
99 99
100 // Indicates that a new commit flow needs to be performed, either to pull 100 // Indicates that a new commit flow needs to be performed, either to pull
101 // updates from the main thread to the impl, or to push deltas from the impl 101 // updates from the main thread to the impl, or to push deltas from the impl
102 // thread to main. 102 // thread to main.
103 void SetNeedsCommit(); 103 void SetNeedsCommit();
104 104
105 void SetAnimateRequested();
106
105 // As SetNeedsCommit(), but ensures the BeginFrame will definitely happen even 107 // As SetNeedsCommit(), but ensures the BeginFrame will definitely happen even
106 // if we are not visible. After this call we expect to go through the forced 108 // if we are not visible. After this call we expect to go through the forced
107 // commit flow and then return to waiting for a non-forced BeginFrame to 109 // commit flow and then return to waiting for a non-forced BeginFrame to
108 // finish. 110 // finish.
109 void SetNeedsForcedCommit(); 111 void SetNeedsForcedCommit();
110 112
111 // Call this only in response to receiving an ACTION_BEGIN_FRAME 113 // Call this only in response to receiving an ACTION_BEGIN_FRAME
112 // from NextAction. Indicates that all painting is complete. 114 // from NextAction. Indicates that all painting is complete.
113 void BeginFrameComplete(); 115 void BeginFrameComplete();
114 116
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool needs_commit_; 180 bool needs_commit_;
179 bool needs_forced_commit_; 181 bool needs_forced_commit_;
180 bool expect_immediate_begin_frame_; 182 bool expect_immediate_begin_frame_;
181 bool main_thread_needs_layer_textures_; 183 bool main_thread_needs_layer_textures_;
182 bool inside_vsync_; 184 bool inside_vsync_;
183 bool visible_; 185 bool visible_;
184 bool can_begin_frame_; 186 bool can_begin_frame_;
185 bool can_draw_; 187 bool can_draw_;
186 bool has_pending_tree_; 188 bool has_pending_tree_;
187 bool draw_if_possible_failed_; 189 bool draw_if_possible_failed_;
190 bool animate_requested_;
188 TextureState texture_state_; 191 TextureState texture_state_;
189 OutputSurfaceState output_surface_state_; 192 OutputSurfaceState output_surface_state_;
190 193
191 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 194 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
192 }; 195 };
193 196
194 } // namespace cc 197 } // namespace cc
195 198
196 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 199 #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