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

Unified Diff: Source/core/html/parser/HTMLParserScheduler.cpp

Issue 656463004: Use the scheduling mechanism provided by the platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed header path. Created 6 years, 2 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: Source/core/html/parser/HTMLParserScheduler.cpp
diff --git a/Source/core/html/parser/HTMLParserScheduler.cpp b/Source/core/html/parser/HTMLParserScheduler.cpp
index 6efa7521cbc94e6f4ce0a99ef717fb463908a44f..1599c61d12f98fc4647c59bed52ea148e674f698 100644
--- a/Source/core/html/parser/HTMLParserScheduler.cpp
+++ b/Source/core/html/parser/HTMLParserScheduler.cpp
@@ -29,7 +29,8 @@
#include "core/dom/Document.h"
#include "core/html/parser/HTMLDocumentParser.h"
#include "core/frame/FrameView.h"
-#include "platform/scheduler/Scheduler.h"
+#include "public/platform/Platform.h"
+#include "public/platform/WebScheduler.h"
#include "wtf/CurrentTime.h"
namespace blink {
@@ -117,7 +118,7 @@ void HTMLParserScheduler::resume()
inline bool HTMLParserScheduler::shouldYield(const SpeculationsPumpSession& session) const
{
- if (Scheduler::shared()->shouldYieldForHighPriorityWork())
+ if (Platform::current()->scheduler() && Platform::current()->scheduler()->shouldYieldForHighPriorityWork())
return true;
const double parserTimeLimit = 0.5;

Powered by Google App Engine
This is Rietveld 408576698