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

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

Issue 1428133003: cc: Add SetNeedsOneBeginImplFrame to the Scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: snanimate: . Created 5 years, 1 month 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 | « no previous file | cc/scheduler/scheduler.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_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_H_
6 #define CC_SCHEDULER_SCHEDULER_H_ 6 #define CC_SCHEDULER_SCHEDULER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 void SetVisible(bool visible); 78 void SetVisible(bool visible);
79 bool visible() { return state_machine_.visible(); } 79 bool visible() { return state_machine_.visible(); }
80 void SetResourcelessSoftareDraw(bool resourceless_draw); 80 void SetResourcelessSoftareDraw(bool resourceless_draw);
81 void SetCanDraw(bool can_draw); 81 void SetCanDraw(bool can_draw);
82 void NotifyReadyToActivate(); 82 void NotifyReadyToActivate();
83 void NotifyReadyToDraw(); 83 void NotifyReadyToDraw();
84 void SetThrottleFrameProduction(bool throttle); 84 void SetThrottleFrameProduction(bool throttle);
85 85
86 void SetNeedsBeginMainFrame(); 86 void SetNeedsBeginMainFrame();
87 // Requests a single impl frame (after the current frame if there is one
88 // active).
89 void SetNeedsOneBeginImplFrame();
87 90
88 void SetNeedsRedraw(); 91 void SetNeedsRedraw();
89 92
90 void SetNeedsAnimate(); 93 void SetNeedsAnimate();
91 94
92 void SetNeedsPrepareTiles(); 95 void SetNeedsPrepareTiles();
93 96
94 void SetMaxSwapsPending(int max); 97 void SetMaxSwapsPending(int max);
95 void DidSwapBuffers(); 98 void DidSwapBuffers();
96 void DidSwapBuffersComplete(); 99 void DidSwapBuffersComplete();
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 225 }
223 226
224 base::WeakPtrFactory<Scheduler> weak_factory_; 227 base::WeakPtrFactory<Scheduler> weak_factory_;
225 228
226 DISALLOW_COPY_AND_ASSIGN(Scheduler); 229 DISALLOW_COPY_AND_ASSIGN(Scheduler);
227 }; 230 };
228 231
229 } // namespace cc 232 } // namespace cc
230 233
231 #endif // CC_SCHEDULER_SCHEDULER_H_ 234 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698