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 CCSchedulerTestCommon_h |
6 #define CCSchedulerTestCommon_h | 6 #define CCSchedulerTestCommon_h |
7 | 7 |
8 #include "CCDelayBasedTimeSource.h" | 8 #include "CCDelayBasedTimeSource.h" |
9 #include "CCFrameRateController.h" | 9 #include "CCFrameRateController.h" |
10 #include "CCThread.h" | 10 #include "cc/thread.h" |
11 #include "base/threading/platform_thread.h" | 11 #include "base/threading/platform_thread.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include <wtf/OwnPtr.h> | 13 #include <wtf/OwnPtr.h> |
14 | 14 |
15 namespace WebKitTests { | 15 namespace WebKitTests { |
16 | 16 |
17 class FakeCCTimeSourceClient : public cc::CCTimeSourceClient { | 17 class FakeCCTimeSourceClient : public cc::CCTimeSourceClient { |
18 public: | 18 public: |
19 FakeCCTimeSourceClient() { reset(); } | 19 FakeCCTimeSourceClient() { reset(); } |
20 void reset() { m_tickCalled = false; } | 20 void reset() { m_tickCalled = false; } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 class FakeCCFrameRateController : public cc::CCFrameRateController { | 122 class FakeCCFrameRateController : public cc::CCFrameRateController { |
123 public: | 123 public: |
124 FakeCCFrameRateController(PassRefPtr<cc::CCTimeSource> timer) : cc::CCFrameR
ateController(timer) { } | 124 FakeCCFrameRateController(PassRefPtr<cc::CCTimeSource> timer) : cc::CCFrameR
ateController(timer) { } |
125 | 125 |
126 int numFramesPending() const { return m_numFramesPending; } | 126 int numFramesPending() const { return m_numFramesPending; } |
127 }; | 127 }; |
128 | 128 |
129 } | 129 } |
130 | 130 |
131 #endif // CCSchedulerTestCommon_h | 131 #endif // CCSchedulerTestCommon_h |
OLD | NEW |