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

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

Issue 2556993005: [blink] Split TaskType::Internal into InternalTimer and InternalLoading. (Closed)
Patch Set: Created 4 years 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/ThreadedWorkletObjectProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorkletObjectProxy.cpp b/third_party/WebKit/Source/core/workers/ThreadedWorkletObjectProxy.cpp
index 3db954f0b94e6aede9c917a0acacbca81ec6e109..d573e101f873f02bf21df700f01fe6eaac113282 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedWorkletObjectProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/ThreadedWorkletObjectProxy.cpp
@@ -44,7 +44,7 @@ void ThreadedWorkletObjectProxy::reportConsoleMessage(
const String& message,
SourceLocation* location) {
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(
BLINK_FROM_HERE,
crossThreadBind(&ThreadedWorkletMessagingProxy::reportConsoleMessage,
@@ -72,7 +72,7 @@ ThreadedWorkletObjectProxy::getParentFrameTaskRunners() {
void ThreadedWorkletObjectProxy::didCloseWorkerGlobalScope() {
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(
BLINK_FROM_HERE,
crossThreadBind(&ThreadedWorkletMessagingProxy::terminateGlobalScope,
@@ -82,7 +82,7 @@ void ThreadedWorkletObjectProxy::didCloseWorkerGlobalScope() {
void ThreadedWorkletObjectProxy::didTerminateWorkerThread() {
// This will terminate the MessagingProxy.
getParentFrameTaskRunners()
- ->get(TaskType::Internal)
+ ->get(TaskType::InternalTimer)
->postTask(BLINK_FROM_HERE,
crossThreadBind(
&ThreadedWorkletMessagingProxy::workerThreadTerminated,

Powered by Google App Engine
This is Rietveld 408576698