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

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

Issue 23686011: CC: Fix missing swap-used-incomplete-tile updates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void DidLeaveBeginFrame(); 121 void DidLeaveBeginFrame();
122 bool inside_begin_frame() const { return inside_begin_frame_; } 122 bool inside_begin_frame() const { return inside_begin_frame_; }
123 123
124 // Indicates whether the LayerTreeHostImpl is visible. 124 // Indicates whether the LayerTreeHostImpl is visible.
125 void SetVisible(bool visible); 125 void SetVisible(bool visible);
126 126
127 // Indicates that a redraw is required, either due to the impl tree changing 127 // Indicates that a redraw is required, either due to the impl tree changing
128 // or the screen being damaged and simply needing redisplay. 128 // or the screen being damaged and simply needing redisplay.
129 void SetNeedsRedraw(); 129 void SetNeedsRedraw();
130 130
131 // Indicates that a redraw is required because we are currently rendering 131 // Indicates whether a redraw is required because we are currently rendering
132 // with a low resolution or checkerboarded tile. 132 // with a low resolution or checkerboarded tile.
133 void DidSwapUseIncompleteTile(); 133 void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
134 134
135 // Indicates whether ACTION_DRAW_AND_SWAP_IF_POSSIBLE drew to the screen or 135 // Indicates whether ACTION_DRAW_AND_SWAP_IF_POSSIBLE drew to the screen or
136 // not. 136 // not.
137 void DidDrawIfPossibleCompleted(bool success); 137 void DidDrawIfPossibleCompleted(bool success);
138 138
139 // Indicates that a new commit flow needs to be performed, either to pull 139 // Indicates that a new commit flow needs to be performed, either to pull
140 // updates from the main thread to the impl, or to push deltas from the impl 140 // updates from the main thread to the impl, or to push deltas from the impl
141 // thread to main. 141 // thread to main.
142 void SetNeedsCommit(); 142 void SetNeedsCommit();
143 143
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 bool draw_if_possible_failed_; 236 bool draw_if_possible_failed_;
237 bool did_create_and_initialize_first_output_surface_; 237 bool did_create_and_initialize_first_output_surface_;
238 238
239 private: 239 private:
240 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 240 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
241 }; 241 };
242 242
243 } // namespace cc 243 } // namespace cc
244 244
245 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 245 #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