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

Side by Side Diff: cc/test/scheduler_test_common.h

Issue 12922002: cc: Chromify FrameRateController (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('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 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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/base/thread.h" 10 #include "cc/base/thread.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 virtual ~FakeDelayBasedTimeSource() { } 113 virtual ~FakeDelayBasedTimeSource() { }
114 114
115 base::TimeTicks m_now; 115 base::TimeTicks m_now;
116 }; 116 };
117 117
118 class FakeFrameRateController : public cc::FrameRateController { 118 class FakeFrameRateController : public cc::FrameRateController {
119 public: 119 public:
120 FakeFrameRateController(scoped_refptr<cc::TimeSource> timer) : cc::FrameRate Controller(timer) { } 120 FakeFrameRateController(scoped_refptr<cc::TimeSource> timer) : cc::FrameRate Controller(timer) { }
121 121
122 int numFramesPending() const { return m_numFramesPending; } 122 int numFramesPending() const { return num_frames_pending_; }
123 }; 123 };
124 124
125 } // namespace cc 125 } // namespace cc
126 126
127 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ 127 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698