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

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: Only allow setting global scope once. 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 afbc4a0509ac1bdcb64a2d2d4975bd60f1734183..bc1ec10826a8b20135cf278c49ce870f2e37ea75 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;
@@ -68,7 +69,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