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

Side by Side Diff: third_party/WebKit/Source/platform/WebScheduler.cpp

Issue 2276353002: Remove after wakeup logic and replace PumpTask with Fences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Slight simplification Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "public/platform/WebScheduler.h" 5 #include "public/platform/WebScheduler.h"
6 6
7 #include "public/platform/WebFrameScheduler.h" 7 #include "public/platform/WebFrameScheduler.h"
8 #include "public/platform/WebTraceLocation.h" 8 #include "public/platform/WebTraceLocation.h"
9 #include "wtf/Assertions.h" 9 #include "wtf/Assertions.h"
10 10
(...skipping 30 matching lines...) Expand all
41 void WebScheduler::postIdleTask(const WebTraceLocation& location, std::unique_pt r<IdleTask> idleTask) 41 void WebScheduler::postIdleTask(const WebTraceLocation& location, std::unique_pt r<IdleTask> idleTask)
42 { 42 {
43 postIdleTask(location, new IdleTaskRunner(std::move(idleTask))); 43 postIdleTask(location, new IdleTaskRunner(std::move(idleTask)));
44 } 44 }
45 45
46 void WebScheduler::postNonNestableIdleTask(const WebTraceLocation& location, std ::unique_ptr<IdleTask> idleTask) 46 void WebScheduler::postNonNestableIdleTask(const WebTraceLocation& location, std ::unique_ptr<IdleTask> idleTask)
47 { 47 {
48 postNonNestableIdleTask(location, new IdleTaskRunner(std::move(idleTask))); 48 postNonNestableIdleTask(location, new IdleTaskRunner(std::move(idleTask)));
49 } 49 }
50 50
51 void WebScheduler::postIdleTaskAfterWakeup(const WebTraceLocation& location, std ::unique_ptr<IdleTask> idleTask)
52 {
53 postIdleTaskAfterWakeup(location, new IdleTaskRunner(std::move(idleTask)));
54 }
55
56 } // namespace blink 51 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698