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

Unified Diff: third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp

Issue 2625293002: Remove ThreadHeapMode (Closed)
Patch Set: Created 3 years, 11 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698