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

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

Issue 2578053002: Worker: Stop running worker tests with BlinkGC::MainThreadHeapMode (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/WorkletThreadHolder.h
diff --git a/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h b/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h
index 0f8c2a907f43c4889b45c813431c2a6ccb6f7fbf..d6f11c3ff84a15973872a4968d81ecaff437be81 100644
--- a/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h
+++ b/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h
@@ -24,15 +24,13 @@ class WorkletThreadHolder {
return s_threadHolderInstance;
}
- static void ensureInstance(const char* threadName,
- BlinkGC::ThreadHeapMode threadHeapMode) {
+ static void ensureInstance(const char* threadName) {
DCHECK(isMainThread());
MutexLocker locker(holderInstanceMutex());
if (s_threadHolderInstance)
return;
s_threadHolderInstance = new WorkletThreadHolder<DerivedWorkletThread>;
- s_threadHolderInstance->initialize(
- WorkerBackingThread::create(threadName, threadHeapMode));
+ s_threadHolderInstance->initialize(WorkerBackingThread::create(threadName));
}
static void ensureInstance(WebThread* thread) {
@@ -44,13 +42,12 @@ class WorkletThreadHolder {
s_threadHolderInstance->initialize(WorkerBackingThread::create(thread));
}
- static void createForTest(const char* threadName,
- BlinkGC::ThreadHeapMode threadHeapMode) {
+ static void createForTest(const char* threadName) {
MutexLocker locker(holderInstanceMutex());
DCHECK(!s_threadHolderInstance);
s_threadHolderInstance = new WorkletThreadHolder<DerivedWorkletThread>;
s_threadHolderInstance->initialize(
- WorkerBackingThread::createForTest(threadName, threadHeapMode));
+ WorkerBackingThread::createForTest(threadName));
}
static void createForTest(WebThread* thread) {

Powered by Google App Engine
This is Rietveld 408576698