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 CCSchedulerTestCommon_h | 5 #ifndef CC_TEST_SCHEDULER_TEST_COMMON_H_ |
6 #define CCSchedulerTestCommon_h | 6 #define CC_TEST_SCHEDULER_TEST_COMMON_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/delay_based_time_source.h" | 9 #include "cc/delay_based_time_source.h" |
10 #include "cc/frame_rate_controller.h" | 10 #include "cc/frame_rate_controller.h" |
11 #include "cc/thread.h" | 11 #include "cc/thread.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace WebKitTests { | 14 namespace WebKitTests { |
15 | 15 |
16 class FakeTimeSourceClient : public cc::TimeSourceClient { | 16 class FakeTimeSourceClient : public cc::TimeSourceClient { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 class FakeFrameRateController : public cc::FrameRateController { | 116 class FakeFrameRateController : public cc::FrameRateController { |
117 public: | 117 public: |
118 FakeFrameRateController(scoped_refptr<cc::TimeSource> timer) : cc::FrameRate
Controller(timer) { } | 118 FakeFrameRateController(scoped_refptr<cc::TimeSource> timer) : cc::FrameRate
Controller(timer) { } |
119 | 119 |
120 int numFramesPending() const { return m_numFramesPending; } | 120 int numFramesPending() const { return m_numFramesPending; } |
121 }; | 121 }; |
122 | 122 |
123 } | 123 } |
124 | 124 |
125 #endif // CCSchedulerTestCommon_h | 125 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ |
OLD | NEW |