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

Unified Diff: Source/core/workers/WorkerThread.h

Issue 491053004: Expose Web Animations API to Web Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Exposing the Web Animations API to Web Workers Created 6 years, 4 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/workers/WorkerThread.h
diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h
index 561a9b5076b34a7caf63cd4ce64af2f9ceba99dc..be8e98c6da3c09f6f0f034c672f93c6a7cf9ca4c 100644
--- a/Source/core/workers/WorkerThread.h
+++ b/Source/core/workers/WorkerThread.h
@@ -70,6 +70,7 @@ namespace blink {
MessageQueueWaitResult runDebuggerTask(WorkerRunLoop::WaitMode = WorkerRunLoop::WaitForMessage);
bool terminated() { return m_runLoop.terminated(); }
+ WorkerGlobalScope* workerGlobalScope() { return m_workerGlobalScope.get(); }
// Number of active worker threads.
static unsigned workerThreadCount();
@@ -83,7 +84,6 @@ namespace blink {
// Executes the event loop for the worker thread. Derived classes can override to perform actions before/after entering the event loop.
virtual void runEventLoop();
- WorkerGlobalScope* workerGlobalScope() { return m_workerGlobalScope.get(); }
private:
// Static function executed as the core routine on the new thread. Passed a pointer to a WorkerThread object.

Powered by Google App Engine
This is Rietveld 408576698