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

Side by Side Diff: third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/WebThreadSupportingGC.h" 5 #include "platform/WebThreadSupportingGC.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "platform/heap/SafePoint.h" 8 #include "platform/heap/SafePoint.h"
9 #include "platform/scheduler/child/web_scheduler.h"
9 #include "platform/wtf/PtrUtil.h" 10 #include "platform/wtf/PtrUtil.h"
10 #include "platform/wtf/Threading.h" 11 #include "platform/wtf/Threading.h"
11 #include "public/platform/WebScheduler.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::Create( 15 std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::Create(
16 const char* name) { 16 const char* name) {
17 return WTF::WrapUnique(new WebThreadSupportingGC(name, nullptr)); 17 return WTF::WrapUnique(new WebThreadSupportingGC(name, nullptr));
18 } 18 }
19 19
20 std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::CreateForThread( 20 std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::CreateForThread(
21 WebThread* thread) { 21 WebThread* thread) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // Shutdown the thread (via its scheduler) only when the thread is created 58 // Shutdown the thread (via its scheduler) only when the thread is created
59 // and is owned by this instance. 59 // and is owned by this instance.
60 if (owning_thread_) 60 if (owning_thread_)
61 owning_thread_->Scheduler()->Shutdown(); 61 owning_thread_->Scheduler()->Shutdown();
62 62
63 ThreadState::DetachCurrentThread(); 63 ThreadState::DetachCurrentThread();
64 } 64 }
65 65
66 } // namespace blink 66 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698