forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move blink scheduler implementation into a component
R=jam@chromium.org,skyostil@chromium.org,rmcilroy@chromium.org BUG=477690 Review URL: https://codereview.chromium.org/1058873010 Cr-Commit-Position: refs/heads/master@{#326320}
- Loading branch information
Showing
111 changed files
with
882 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Copyright 2015 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import("//components/scheduler/scheduler.gni") | ||
|
||
# GYP version: components/scheduler.gypi:scheduler | ||
component("scheduler") { | ||
sources = rebase_path(scheduler_gypi_values.scheduler_sources, | ||
".", | ||
"//components/scheduler") | ||
|
||
defines = [ "SCHEDULER_IMPLEMENTATION" ] | ||
|
||
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | ||
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | ||
|
||
deps = [ | ||
":common", | ||
"//base", | ||
"//cc:cc", | ||
"//third_party/WebKit/public:blink", | ||
"//ui/gfx:gfx", | ||
] | ||
} | ||
|
||
# GYP version: components/scheduler.gypi:scheduler_common | ||
source_set("common") { | ||
sources = rebase_path(scheduler_gypi_values.scheduler_common_sources, | ||
".", | ||
"//components/scheduler") | ||
} | ||
|
||
source_set("unit_tests") { | ||
testonly = true | ||
|
||
sources = [ | ||
"child/nestable_task_runner_for_test.cc", | ||
"child/nestable_task_runner_for_test.h", | ||
"child/prioritizing_task_queue_selector_unittest.cc", | ||
"child/scheduler_helper_unittest.cc", | ||
"child/task_queue_manager_unittest.cc", | ||
"child/test_time_source.cc", | ||
"child/test_time_source.h", | ||
"child/worker_scheduler_impl_unittest.cc", | ||
"renderer/deadline_task_runner_unittest.cc", | ||
"renderer/renderer_scheduler_impl_unittest.cc", | ||
] | ||
|
||
deps = [ | ||
":scheduler", | ||
"//cc:test_support", | ||
"//testing/gmock", | ||
"//testing/gtest", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include_rules = [ | ||
"-components/scheduler", | ||
"+components/scheduler/common", | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
include_rules = [ | ||
"+components/scheduler/common", | ||
"+components/scheduler/scheduler_export.h", | ||
"+third_party/WebKit/public/platform", | ||
] | ||
|
||
specific_include_rules = { | ||
"(test_time_source|.*test)\.cc": [ | ||
"+cc/test", | ||
"+content/test", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
alexclarke@chromium.org | ||
rmcilroy@chromium.org | ||
skyostil@chromium.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef COMPONENTS_SCHEDULER_CHILD_NULL_IDLE_TASK_RUNNER_H_ | ||
#define COMPONENTS_SCHEDULER_CHILD_NULL_IDLE_TASK_RUNNER_H_ | ||
|
||
#include "components/scheduler/child/single_thread_idle_task_runner.h" | ||
|
||
namespace scheduler { | ||
|
||
class NullIdleTaskRunner : public SingleThreadIdleTaskRunner { | ||
public: | ||
NullIdleTaskRunner(); | ||
void PostIdleTask(const tracked_objects::Location& from_here, | ||
const IdleTask& idle_task) override; | ||
|
||
void PostNonNestableIdleTask(const tracked_objects::Location& from_here, | ||
const IdleTask& idle_task) override; | ||
|
||
void PostIdleTaskAfterWakeup(const tracked_objects::Location& from_here, | ||
const IdleTask& idle_task) override; | ||
|
||
protected: | ||
~NullIdleTaskRunner() override; | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(NullIdleTaskRunner); | ||
}; | ||
|
||
} // namespace scheduler | ||
|
||
#endif // COMPONENTS_SCHEDULER_CHILD_NULL_IDLE_TASK_RUNNER_H_ |
Oops, something went wrong.