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

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

Issue 199523002: cc: Throttle swaps in Scheduler instead of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Actually, unittests need CC_EXPORT. Created 6 years, 8 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/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_impl.h » ('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/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
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_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698