| 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 bb85da48a415342ec8811f2988c549eb38580682..846d5ef6b1b8c48f5fe9334a93ef635162317ebe 100644
|
| --- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| +++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| @@ -12,19 +12,19 @@
|
|
|
| namespace blink {
|
|
|
| -std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name, bool perThreadHeapEnabled)
|
| +std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name, BlinkGC::ThreadHeapMode threadHeapMode)
|
| {
|
| - return wrapUnique(new WebThreadSupportingGC(name, nullptr, perThreadHeapEnabled));
|
| + return wrapUnique(new WebThreadSupportingGC(name, nullptr, threadHeapMode));
|
| }
|
|
|
| -std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::createForThread(WebThread* thread, bool perThreadHeapEnabled)
|
| +std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::createForThread(WebThread* thread, BlinkGC::ThreadHeapMode threadHeapMode)
|
| {
|
| - return wrapUnique(new WebThreadSupportingGC(nullptr, thread, perThreadHeapEnabled));
|
| + return wrapUnique(new WebThreadSupportingGC(nullptr, thread, threadHeapMode));
|
| }
|
|
|
| -WebThreadSupportingGC::WebThreadSupportingGC(const char* name, WebThread* thread, bool perThreadHeapEnabled)
|
| +WebThreadSupportingGC::WebThreadSupportingGC(const char* name, WebThread* thread, BlinkGC::ThreadHeapMode threadHeapMode)
|
| : m_thread(thread)
|
| - , m_perThreadHeapEnabled(perThreadHeapEnabled)
|
| + , m_threadHeapMode(threadHeapMode)
|
| {
|
| #if ENABLE(ASSERT)
|
| ASSERT(!name || !thread);
|
| @@ -50,7 +50,7 @@ WebThreadSupportingGC::~WebThreadSupportingGC()
|
|
|
| void WebThreadSupportingGC::initialize()
|
| {
|
| - ThreadState::attachCurrentThread(m_perThreadHeapEnabled);
|
| + ThreadState::attachCurrentThread(m_threadHeapMode);
|
| m_gcTaskRunner = wrapUnique(new GCTaskRunner(m_thread));
|
| }
|
|
|
|
|