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

Unified Diff: cc/test/scheduler_test_common.h

Issue 1201573002: cc: Remove BeginFrameSourcesConstructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove refptr changes Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/onscreen_display_client.cc ('k') | cc/test/scheduler_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/scheduler_test_common.h
diff --git a/cc/test/scheduler_test_common.h b/cc/test/scheduler_test_common.h
index d12afccc8f24933dab6cbb629029fab2e759b59b..a99cbafa3b67cde1c09d1c093267e2ec421c6637 100644
--- a/cc/test/scheduler_test_common.h
+++ b/cc/test/scheduler_test_common.h
@@ -159,31 +159,6 @@ class TestSyntheticBeginFrameSource : public SyntheticBeginFrameSource {
DISALLOW_COPY_AND_ASSIGN(TestSyntheticBeginFrameSource);
};
-class TestScheduler;
-class TestSchedulerFrameSourcesConstructor
- : public SchedulerFrameSourcesConstructor {
- public:
- ~TestSchedulerFrameSourcesConstructor() override;
-
- protected:
- BeginFrameSource* ConstructPrimaryFrameSource(Scheduler* scheduler) override;
- BeginFrameSource* ConstructUnthrottledFrameSource(
- Scheduler* scheduler) override;
-
- OrderedSimpleTaskRunner* test_task_runner_;
- // Not owned.
- base::SimpleTestTickClock* now_src_;
-
- protected:
- explicit TestSchedulerFrameSourcesConstructor(
- OrderedSimpleTaskRunner* test_task_runner,
- base::SimpleTestTickClock* now_src);
- friend class TestScheduler;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TestSchedulerFrameSourcesConstructor);
-};
-
class TestScheduler : public Scheduler {
public:
static scoped_ptr<TestScheduler> Create(
@@ -192,18 +167,7 @@ class TestScheduler : public Scheduler {
const SchedulerSettings& scheduler_settings,
int layer_tree_host_id,
const scoped_refptr<OrderedSimpleTaskRunner>& task_runner,
- scoped_ptr<BeginFrameSource> external_begin_frame_source) {
- TestSchedulerFrameSourcesConstructor frame_sources_constructor(
- task_runner.get(), now_src);
- return make_scoped_ptr(new TestScheduler(
- now_src,
- client,
- scheduler_settings,
- layer_tree_host_id,
- task_runner,
- &frame_sources_constructor,
- external_begin_frame_source.Pass()));
- }
+ BeginFrameSource* external_frame_source);
// Extra test helper functionality
bool IsBeginRetroFrameArgsEmpty() const {
@@ -226,13 +190,15 @@ class TestScheduler : public Scheduler {
base::TimeTicks Now() const override;
private:
- TestScheduler(base::SimpleTestTickClock* now_src,
- SchedulerClient* client,
- const SchedulerSettings& scheduler_settings,
- int layer_tree_host_id,
- const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner,
- TestSchedulerFrameSourcesConstructor* frame_sources_constructor,
- scoped_ptr<BeginFrameSource> external_begin_frame_source);
+ TestScheduler(
+ base::SimpleTestTickClock* now_src,
+ SchedulerClient* client,
+ const SchedulerSettings& scheduler_settings,
+ int layer_tree_host_id,
+ const scoped_refptr<OrderedSimpleTaskRunner>& task_runner,
+ BeginFrameSource* external_frame_source,
+ scoped_ptr<TestSyntheticBeginFrameSource> synthetic_frame_source,
+ scoped_ptr<TestBackToBackBeginFrameSource> unthrottled_frame_source);
// Not owned.
base::SimpleTestTickClock* now_src_;
« no previous file with comments | « cc/surfaces/onscreen_display_client.cc ('k') | cc/test/scheduler_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698