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

Unified Diff: Source/web/WebWorkerRunLoop.cpp

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . 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
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebWorkerRunLoop.cpp
diff --git a/Source/web/WebWorkerRunLoop.cpp b/Source/web/WebWorkerRunLoop.cpp
index 57a07ffe0684fed4faaa2fe0e16524672e86721f..f2c075af8e17cdecf86f1fb644b1bc77ad24e8f3 100644
--- a/Source/web/WebWorkerRunLoop.cpp
+++ b/Source/web/WebWorkerRunLoop.cpp
@@ -26,6 +26,7 @@
#include "public/platform/WebWorkerRunLoop.h"
#include "core/workers/WorkerThread.h"
+#include "platform/TraceEvent.h"
namespace blink {
@@ -75,4 +76,16 @@ bool WebWorkerRunLoop::lessThan(const WebWorkerRunLoop& o) const
return m_workerThread < o.m_workerThread;
}
+void WebWorkerRunLoop::setTeleporter(WebTeleporter* teleporter) const
+{
+ TRACE_EVENT0("teleport", "WebWorkerRunLoop::setTeleporter");
+ m_workerThread->setTeleporter(teleporter); // TODO want many workers to share runloop?
+}
+
+int WebWorkerRunLoop::compositorId() const
+{
+ TRACE_EVENT0("teleport", "WebWorkerRunLoop::id");
+ return m_workerThread->id();
+}
+
} // namespace blink
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698