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

Side by Side Diff: Source/platform/scheduler/Scheduler.cpp

Issue 971283002: Add canExceedIdleDeadlineIfRequired function to Scheduler and use it in Oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Typo Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/scheduler/Scheduler.h ('k') | public/platform/WebScheduler.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "platform/scheduler/Scheduler.h" 6 #include "platform/scheduler/Scheduler.h"
7 7
8 #include "public/platform/Platform.h" 8 #include "public/platform/Platform.h"
9 #include "public/platform/WebScheduler.h" 9 #include "public/platform/WebScheduler.h"
10 #include "public/platform/WebTraceLocation.h" 10 #include "public/platform/WebTraceLocation.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 m_webScheduler->postLoadingTask(location, task); 82 m_webScheduler->postLoadingTask(location, task);
83 } 83 }
84 84
85 bool Scheduler::shouldYieldForHighPriorityWork() const 85 bool Scheduler::shouldYieldForHighPriorityWork() const
86 { 86 {
87 if (m_webScheduler) 87 if (m_webScheduler)
88 return m_webScheduler->shouldYieldForHighPriorityWork(); 88 return m_webScheduler->shouldYieldForHighPriorityWork();
89 return false; 89 return false;
90 } 90 }
91 91
92 bool Scheduler::canExceedIdleDeadlineIfRequired() const
93 {
94 if (m_webScheduler)
95 return m_webScheduler->canExceedIdleDeadlineIfRequired();
96 return false;
97 }
98
92 } // namespace blink 99 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/scheduler/Scheduler.h ('k') | public/platform/WebScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698