| Index: third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| index bc4ffa7b46ad0268326903c839c7caf102347074..d6b944a3ff19bd23d913db03c023773b31a79f99 100644
|
| --- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| +++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| @@ -13,24 +13,18 @@
|
| namespace blink {
|
|
|
| std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::create(
|
| - const char* name,
|
| - BlinkGC::ThreadHeapMode threadHeapMode) {
|
| - return WTF::wrapUnique(
|
| - new WebThreadSupportingGC(name, nullptr, threadHeapMode));
|
| + const char* name) {
|
| + return WTF::wrapUnique(new WebThreadSupportingGC(name, nullptr));
|
| }
|
|
|
| std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::createForThread(
|
| - WebThread* thread,
|
| - BlinkGC::ThreadHeapMode threadHeapMode) {
|
| - return WTF::wrapUnique(
|
| - new WebThreadSupportingGC(nullptr, thread, threadHeapMode));
|
| + WebThread* thread) {
|
| + return WTF::wrapUnique(new WebThreadSupportingGC(nullptr, thread));
|
| }
|
|
|
| -WebThreadSupportingGC::WebThreadSupportingGC(
|
| - const char* name,
|
| - WebThread* thread,
|
| - BlinkGC::ThreadHeapMode threadHeapMode)
|
| - : m_thread(thread), m_threadHeapMode(threadHeapMode) {
|
| +WebThreadSupportingGC::WebThreadSupportingGC(const char* name,
|
| + WebThread* thread)
|
| + : m_thread(thread) {
|
| DCHECK(!name || !thread);
|
| #if DCHECK_IS_ON()
|
| // We call this regardless of whether an existing thread is given or not,
|
| @@ -53,7 +47,7 @@ WebThreadSupportingGC::~WebThreadSupportingGC() {
|
| }
|
|
|
| void WebThreadSupportingGC::initialize() {
|
| - ThreadState::attachCurrentThread(m_threadHeapMode);
|
| + ThreadState::attachCurrentThread();
|
| m_gcTaskRunner = WTF::makeUnique<GCTaskRunner>(m_thread);
|
| }
|
|
|
|
|