| OLD | NEW |
| 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_TEST_SCHEDULER_TEST_COMMON_H_ | 5 #ifndef CC_TEST_SCHEDULER_TEST_COMMON_H_ |
| 6 #define CC_TEST_SCHEDULER_TEST_COMMON_H_ | 6 #define CC_TEST_SCHEDULER_TEST_COMMON_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/time.h" | 10 #include "base/time/time.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 : DelayBasedTimeSource(interval, task_runner) {} | 44 : DelayBasedTimeSource(interval, task_runner) {} |
| 45 virtual ~FakeDelayBasedTimeSource() {} | 45 virtual ~FakeDelayBasedTimeSource() {} |
| 46 | 46 |
| 47 base::TimeTicks now_; | 47 base::TimeTicks now_; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 class FakeFrameRateController : public FrameRateController { | 50 class FakeFrameRateController : public FrameRateController { |
| 51 public: | 51 public: |
| 52 explicit FakeFrameRateController(scoped_refptr<TimeSource> timer) | 52 explicit FakeFrameRateController(scoped_refptr<TimeSource> timer) |
| 53 : FrameRateController(timer) {} | 53 : FrameRateController(timer) {} |
| 54 | |
| 55 int NumFramesPending() const { return num_frames_pending_; } | |
| 56 }; | 54 }; |
| 57 | 55 |
| 58 } // namespace cc | 56 } // namespace cc |
| 59 | 57 |
| 60 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ | 58 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ |
| OLD | NEW |