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

Side by Side Diff: cc/scheduler/scheduler.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 | « 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void SetNeedsCommit(); 68 void SetNeedsCommit();
69 69
70 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if 70 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if
71 // we are not visible. 71 // we are not visible.
72 void SetNeedsForcedCommit(); 72 void SetNeedsForcedCommit();
73 73
74 void SetNeedsRedraw(); 74 void SetNeedsRedraw();
75 75
76 void SetMainThreadNeedsLayerTextures(); 76 void SetMainThreadNeedsLayerTextures();
77 77
78 void SetAnimateRequested();
79
78 // Like SetNeedsRedraw(), but ensures the draw will definitely happen even if 80 // Like SetNeedsRedraw(), but ensures the draw will definitely happen even if
79 // we are not visible. 81 // we are not visible.
80 void SetNeedsForcedRedraw(); 82 void SetNeedsForcedRedraw();
81 83
82 void DidSwapUseIncompleteTile(); 84 void DidSwapUseIncompleteTile();
83 85
84 void BeginFrameComplete(); 86 void BeginFrameComplete();
85 void BeginFrameAborted(); 87 void BeginFrameAborted();
86 88
87 void SetMaxFramesPending(int max); 89 void SetMaxFramesPending(int max);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 scoped_ptr<FrameRateController> frame_rate_controller_; 122 scoped_ptr<FrameRateController> frame_rate_controller_;
121 SchedulerStateMachine state_machine_; 123 SchedulerStateMachine state_machine_;
122 bool inside_process_scheduled_actions_; 124 bool inside_process_scheduled_actions_;
123 125
124 DISALLOW_COPY_AND_ASSIGN(Scheduler); 126 DISALLOW_COPY_AND_ASSIGN(Scheduler);
125 }; 127 };
126 128
127 } // namespace cc 129 } // namespace cc
128 130
129 #endif // CC_SCHEDULER_SCHEDULER_H_ 131 #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