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

Side by Side Diff: content/utility/utility_blink_platform_impl.cc

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/utility/utility_blink_platform_impl.h" 5 #include "content/utility/utility_blink_platform_impl.h"
6 6
7 #include "content/utility/webthread_impl_for_utility_thread.h" 7 #include "third_party/WebKit/public/platform/scheduler/utility/webthread_impl_fo r_utility_thread.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 UtilityBlinkPlatformImpl::UtilityBlinkPlatformImpl() 11 UtilityBlinkPlatformImpl::UtilityBlinkPlatformImpl()
12 : main_thread_(new WebThreadImplForUtilityThread()) { 12 : main_thread_(new blink::scheduler::WebThreadImplForUtilityThread()) {}
13 }
14 13
15 UtilityBlinkPlatformImpl::~UtilityBlinkPlatformImpl() { 14 UtilityBlinkPlatformImpl::~UtilityBlinkPlatformImpl() {
16 } 15 }
17 16
18 blink::WebThread* UtilityBlinkPlatformImpl::currentThread() { 17 blink::WebThread* UtilityBlinkPlatformImpl::currentThread() {
19 if (main_thread_->isCurrentThread()) 18 if (main_thread_->isCurrentThread())
20 return main_thread_.get(); 19 return main_thread_.get();
21 return BlinkPlatformImpl::currentThread(); 20 return BlinkPlatformImpl::currentThread();
22 } 21 }
23 22
24 } // namespace content 23 } // namespace content
OLDNEW
« no previous file with comments | « content/utility/utility_blink_platform_impl.h ('k') | content/utility/webthread_impl_for_utility_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698