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

Side by Side Diff: cc/frame_rate_controller.h

Issue 12472028: Part 1 of cc/ directory shuffles: base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
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_FRAME_RATE_CONTROLLER_H_ 5 #ifndef CC_FRAME_RATE_CONTROLLER_H_
6 #define CC_FRAME_RATE_CONTROLLER_H_ 6 #define CC_FRAME_RATE_CONTROLLER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "cc/cc_export.h" 12 #include "cc/base/cc_export.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class Thread; 16 class Thread;
17 class TimeSource; 17 class TimeSource;
18 18
19 class CC_EXPORT FrameRateControllerClient { 19 class CC_EXPORT FrameRateControllerClient {
20 public: 20 public:
21 // Throttled is true when we have a maximum number of frames pending. 21 // Throttled is true when we have a maximum number of frames pending.
22 virtual void vsyncTick(bool throttled) = 0; 22 virtual void vsyncTick(bool throttled) = 0;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool m_isTimeSourceThrottling; 79 bool m_isTimeSourceThrottling;
80 base::WeakPtrFactory<FrameRateController> m_weakFactory; 80 base::WeakPtrFactory<FrameRateController> m_weakFactory;
81 Thread* m_thread; 81 Thread* m_thread;
82 82
83 DISALLOW_COPY_AND_ASSIGN(FrameRateController); 83 DISALLOW_COPY_AND_ASSIGN(FrameRateController);
84 }; 84 };
85 85
86 } // namespace cc 86 } // namespace cc
87 87
88 #endif // CC_FRAME_RATE_CONTROLLER_H_ 88 #endif // CC_FRAME_RATE_CONTROLLER_H_
OLDNEW
« cc/cc.gyp ('K') | « cc/float_quad_unittest.cc ('k') | cc/frame_rate_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698