| OLD | NEW |
| 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/scheduler/renderer/renderer_scheduler_impl.h" | 5 #include "platform/scheduler/renderer/renderer_scheduler_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/stack_trace.h" | 8 #include "base/debug/stack_trace.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 RendererSchedulerImpl::CompositorThreadOnly::~CompositorThreadOnly() {} | 163 RendererSchedulerImpl::CompositorThreadOnly::~CompositorThreadOnly() {} |
| 164 | 164 |
| 165 void RendererSchedulerImpl::Shutdown() { | 165 void RendererSchedulerImpl::Shutdown() { |
| 166 throttling_helper_.reset(); | 166 throttling_helper_.reset(); |
| 167 helper_.Shutdown(); | 167 helper_.Shutdown(); |
| 168 MainThreadOnly().was_shutdown = true; | 168 MainThreadOnly().was_shutdown = true; |
| 169 MainThreadOnly().rail_mode_observer = nullptr; | 169 MainThreadOnly().rail_mode_observer = nullptr; |
| 170 } | 170 } |
| 171 | 171 |
| 172 std::unique_ptr<blink::WebThread> RendererSchedulerImpl::CreateMainThread() { | 172 std::unique_ptr<blink::WebThread> RendererSchedulerImpl::CreateMainThread() { |
| 173 return base::WrapUnique(new WebThreadImplForRendererScheduler(this)); | 173 return base::MakeUnique<WebThreadImplForRendererScheduler>(this); |
| 174 } | 174 } |
| 175 | 175 |
| 176 scoped_refptr<TaskQueue> RendererSchedulerImpl::DefaultTaskRunner() { | 176 scoped_refptr<TaskQueue> RendererSchedulerImpl::DefaultTaskRunner() { |
| 177 return helper_.DefaultTaskRunner(); | 177 return helper_.DefaultTaskRunner(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 scoped_refptr<TaskQueue> RendererSchedulerImpl::CompositorTaskRunner() { | 180 scoped_refptr<TaskQueue> RendererSchedulerImpl::CompositorTaskRunner() { |
| 181 helper_.CheckOnValidThread(); | 181 helper_.CheckOnValidThread(); |
| 182 return compositor_task_runner_; | 182 return compositor_task_runner_; |
| 183 } | 183 } |
| (...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1488 case v8::PERFORMANCE_LOAD: | 1488 case v8::PERFORMANCE_LOAD: |
| 1489 return "load"; | 1489 return "load"; |
| 1490 default: | 1490 default: |
| 1491 NOTREACHED(); | 1491 NOTREACHED(); |
| 1492 return nullptr; | 1492 return nullptr; |
| 1493 } | 1493 } |
| 1494 } | 1494 } |
| 1495 | 1495 |
| 1496 } // namespace scheduler | 1496 } // namespace scheduler |
| 1497 } // namespace blink | 1497 } // namespace blink |
| OLD | NEW |