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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc

Issue 2258713004: Make tasks cancellable inside the blink scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Various comment nits addressed Created 4 years, 4 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
Index: third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc b/third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc
index 251d3a99da42ec3ab9891753ce5cf4f4b5bf24a7..f4ad729c6057d780d7b0f7f4bcbc86273effb1c2 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc
@@ -25,6 +25,24 @@ class CompositorWorkerTaskRunnerWrapper : public TaskQueue {
return task_runner_->RunsTasksOnCurrentThread();
}
+ TaskQueue::TaskHandle PostCancellableDelayedTask(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ base::TimeDelta delay) {
+ NOTREACHED();
+ return TaskHandle();
+ }
+
+ bool CancelTask(const TaskQueue::TaskHandle& handle) {
+ NOTREACHED();
+ return false;
+ }
+
+ bool IsTaskPending(const TaskQueue::TaskHandle& handle) const {
+ NOTREACHED();
+ return false;
+ }
+
bool PostDelayedTask(const tracked_objects::Location& from_here,
const base::Closure& task,
base::TimeDelta delay) override {

Powered by Google App Engine
This is Rietveld 408576698