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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp

Issue 2093983002: scheduler: Tell v8 about the current RAIL mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing gyp dependencies Created 4 years, 6 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/core/workers/WorkerBackingThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
index 168e6d38a20ed999f6ec131cf77efb4e4187a196..c7bef3ae183cd7ac5aac1e6f08d6ea0dd528cf8b 100644
--- a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
@@ -111,4 +111,13 @@ void WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(
isolate->MemoryPressureNotification(level);
}
+// static
+void WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(
+ v8::RAILMode railMode)
+{
+ MutexLocker lock(isolatesMutex());
+ for (v8::Isolate* isolate : isolates())
+ isolate->SetRAILMode(railMode);
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerBackingThread.h ('k') | third_party/WebKit/Source/web/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698