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

Side by Side Diff: cc/scheduler.h

Issue 11747002: cc: Set the max frames pending from the thread proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK_GE Created 7 years, 11 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/layer_tree_host_unittest.cc ('k') | cc/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_H_ 5 #ifndef CC_SCHEDULER_H_
6 #define CC_SCHEDULER_H_ 6 #define CC_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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 void setMainThreadNeedsLayerTextures(); 72 void setMainThreadNeedsLayerTextures();
73 73
74 // Like setNeedsRedraw(), but ensures the draw will definitely happen even i f we are not visible. 74 // Like setNeedsRedraw(), but ensures the draw will definitely happen even i f we are not visible.
75 void setNeedsForcedRedraw(); 75 void setNeedsForcedRedraw();
76 76
77 void beginFrameComplete(); 77 void beginFrameComplete();
78 void beginFrameAborted(); 78 void beginFrameAborted();
79 79
80 void setMaxFramesPending(int); 80 void setMaxFramesPending(int);
81 int maxFramesPending() const;
82
81 void setSwapBuffersCompleteSupported(bool); 83 void setSwapBuffersCompleteSupported(bool);
82 void didSwapBuffersComplete(); 84 void didSwapBuffersComplete();
83 85
84 void didLoseOutputSurface(); 86 void didLoseOutputSurface();
85 void didRecreateOutputSurface(); 87 void didRecreateOutputSurface();
86 88
87 bool commitPending() const { return m_stateMachine.commitPending(); } 89 bool commitPending() const { return m_stateMachine.commitPending(); }
88 bool redrawPending() const { return m_stateMachine.redrawPending(); } 90 bool redrawPending() const { return m_stateMachine.redrawPending(); }
89 91
90 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv al); 92 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv al);
(...skipping 12 matching lines...) Expand all
103 scoped_ptr<FrameRateController> m_frameRateController; 105 scoped_ptr<FrameRateController> m_frameRateController;
104 SchedulerStateMachine m_stateMachine; 106 SchedulerStateMachine m_stateMachine;
105 bool m_insideProcessScheduledActions; 107 bool m_insideProcessScheduledActions;
106 108
107 DISALLOW_COPY_AND_ASSIGN(Scheduler); 109 DISALLOW_COPY_AND_ASSIGN(Scheduler);
108 }; 110 };
109 111
110 } // namespace cc 112 } // namespace cc
111 113
112 #endif // CC_SCHEDULER_H_ 114 #endif // CC_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698