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

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

Issue 1895873006: compositor-worker: Initialize CW machinery plumbing to compositor and fire CW rAF callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add big fat TODOs in scheduler code to implement proper idle task scheduling and ensure GC is runniā€¦ Created 4 years, 7 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.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerBackingThread.h b/third_party/WebKit/Source/core/workers/WorkerBackingThread.h
index 08b3fc25ce26f869ab93a104a7ae986c12c4a57d..79b6cac1204e9b6ae9f69b547f9b44af5047d989 100644
--- a/third_party/WebKit/Source/core/workers/WorkerBackingThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerBackingThread.h
@@ -14,6 +14,7 @@
namespace blink {
+class WaitableEvent;
class WebThread;
class WebThreadSupportingGC;
@@ -65,7 +66,8 @@ private:
WorkerBackingThread(const char* name, bool shouldCallGCOnShutdown);
WorkerBackingThread(WebThread*, bool shouldCallGCOnSHutdown);
void initialize();
- void shutdown();
+ void shutdown(WaitableEvent* doneEvent = nullptr);
+ void signalShutdownAndWait();
// Protects |m_workerScriptCount|.
Mutex m_mutex;

Powered by Google App Engine
This is Rietveld 408576698