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

Side by Side Diff: cc/CCFrameRateController.h

Issue 10907075: Roll cc snapshot up to 127605 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/CCFrameRateController.cpp » ('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 CCFrameRateController_h 5 #ifndef CCFrameRateController_h
6 #define CCFrameRateController_h 6 #define CCFrameRateController_h
7 7
8 #include "CCTimer.h" 8 #include "CCTimer.h"
9 9
10 #include <wtf/Deque.h> 10 #include <wtf/Deque.h>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // didFinishFrame should be posted. 43 // didFinishFrame should be posted.
44 // 44 //
45 // If the rendering pipeline crashes, call didAbortAllPendingFrames. 45 // If the rendering pipeline crashes, call didAbortAllPendingFrames.
46 void didBeginFrame(); 46 void didBeginFrame();
47 void didFinishFrame(); 47 void didFinishFrame();
48 void didAbortAllPendingFrames(); 48 void didAbortAllPendingFrames();
49 void setMaxFramesPending(int); // 0 for unlimited. 49 void setMaxFramesPending(int); // 0 for unlimited.
50 double nextTickTimeIfActivated(); 50 double nextTickTimeIfActivated();
51 51
52 void setTimebaseAndInterval(double timebase, double intervalSeconds); 52 void setTimebaseAndInterval(double timebase, double intervalSeconds);
53 void setSwapBuffersCompleteSupported(bool);
53 54
54 protected: 55 protected:
55 friend class CCFrameRateControllerTimeSourceAdapter; 56 friend class CCFrameRateControllerTimeSourceAdapter;
56 void onTimerTick(); 57 void onTimerTick();
57 58
58 void postManualTick(); 59 void postManualTick();
59 60
60 // CCTimerClient implementation (used for unthrottled frame-rate). 61 // CCTimerClient implementation (used for unthrottled frame-rate).
61 virtual void onTimerFired() OVERRIDE; 62 virtual void onTimerFired() OVERRIDE;
62 63
63 CCFrameRateControllerClient* m_client; 64 CCFrameRateControllerClient* m_client;
64 int m_numFramesPending; 65 int m_numFramesPending;
65 int m_maxFramesPending; 66 int m_maxFramesPending;
66 RefPtr<CCTimeSource> m_timeSource; 67 RefPtr<CCTimeSource> m_timeSource;
67 OwnPtr<CCFrameRateControllerTimeSourceAdapter> m_timeSourceClientAdapter; 68 OwnPtr<CCFrameRateControllerTimeSourceAdapter> m_timeSourceClientAdapter;
68 bool m_active; 69 bool m_active;
70 bool m_swapBuffersCompleteSupported;
69 71
70 // Members for unthrottled frame-rate. 72 // Members for unthrottled frame-rate.
71 bool m_isTimeSourceThrottling; 73 bool m_isTimeSourceThrottling;
72 OwnPtr<CCTimer> m_manualTicker; 74 OwnPtr<CCTimer> m_manualTicker;
73 }; 75 };
74 76
75 } 77 }
76 #endif // CCFrameRateController_h 78 #endif // CCFrameRateController_h
OLDNEW
« no previous file with comments | « no previous file | cc/CCFrameRateController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698