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

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

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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.h
diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
index 405401eb58d6dac33394a302c6ffcbcc82573ce2..2fce5c63598b86e719038a0384ce7b86b77877f1 100644
--- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
+++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
@@ -27,8 +27,8 @@ namespace blink {
class PLATFORM_EXPORT WebThreadSupportingGC final {
WTF_MAKE_NONCOPYABLE(WebThreadSupportingGC);
public:
- static PassOwnPtr<WebThreadSupportingGC> create(const char* name);
- static PassOwnPtr<WebThreadSupportingGC> createForThread(WebThread*);
+ static PassOwnPtr<WebThreadSupportingGC> create(const char* name, bool isolated=false);
+ static PassOwnPtr<WebThreadSupportingGC> createForThread(WebThread*, bool isolated=false);
~WebThreadSupportingGC();
void postTask(const WebTraceLocation& location, WebTaskRunner::Task* task)
@@ -66,7 +66,7 @@ public:
}
private:
- WebThreadSupportingGC(const char* name, WebThread*);
+ WebThreadSupportingGC(const char* name, WebThread*, bool isolated=false);
OwnPtr<GCTaskRunner> m_gcTaskRunner;
@@ -75,6 +75,7 @@ private:
// existing thread via createForThread().
WebThread* m_thread = nullptr;
OwnPtr<WebThread> m_owningThread;
+ bool m_isolated;
};
}

Powered by Google App Engine
This is Rietveld 408576698