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

Side by Side Diff: components/scheduler/renderer/renderer_scheduler_impl.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 4 years, 12 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 "components/scheduler/renderer/renderer_scheduler_impl.h" 5 #include "components/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/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 : last_input_type(blink::WebInputEvent::Undefined) {} 144 : last_input_type(blink::WebInputEvent::Undefined) {}
145 145
146 RendererSchedulerImpl::CompositorThreadOnly::~CompositorThreadOnly() {} 146 RendererSchedulerImpl::CompositorThreadOnly::~CompositorThreadOnly() {}
147 147
148 void RendererSchedulerImpl::Shutdown() { 148 void RendererSchedulerImpl::Shutdown() {
149 helper_.Shutdown(); 149 helper_.Shutdown();
150 MainThreadOnly().was_shutdown = true; 150 MainThreadOnly().was_shutdown = true;
151 } 151 }
152 152
153 scoped_ptr<blink::WebThread> RendererSchedulerImpl::CreateMainThread() { 153 scoped_ptr<blink::WebThread> RendererSchedulerImpl::CreateMainThread() {
154 return make_scoped_ptr(new WebThreadImplForRendererScheduler(this)).Pass(); 154 return make_scoped_ptr(new WebThreadImplForRendererScheduler(this));
155 } 155 }
156 156
157 scoped_refptr<TaskQueue> RendererSchedulerImpl::DefaultTaskRunner() { 157 scoped_refptr<TaskQueue> RendererSchedulerImpl::DefaultTaskRunner() {
158 return helper_.DefaultTaskRunner(); 158 return helper_.DefaultTaskRunner();
159 } 159 }
160 160
161 scoped_refptr<base::SingleThreadTaskRunner> 161 scoped_refptr<base::SingleThreadTaskRunner>
162 RendererSchedulerImpl::CompositorTaskRunner() { 162 RendererSchedulerImpl::CompositorTaskRunner() {
163 helper_.CheckOnValidThread(); 163 helper_.CheckOnValidThread();
164 return compositor_task_runner_; 164 return compositor_task_runner_;
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 1081
1082 void RendererSchedulerImpl::UnregisterTimeDomain(TimeDomain* time_domain) { 1082 void RendererSchedulerImpl::UnregisterTimeDomain(TimeDomain* time_domain) {
1083 helper_.UnregisterTimeDomain(time_domain); 1083 helper_.UnregisterTimeDomain(time_domain);
1084 } 1084 }
1085 1085
1086 base::TickClock* RendererSchedulerImpl::tick_clock() const { 1086 base::TickClock* RendererSchedulerImpl::tick_clock() const {
1087 return helper_.scheduler_tqm_delegate().get(); 1087 return helper_.scheduler_tqm_delegate().get();
1088 } 1088 }
1089 1089
1090 } // namespace scheduler 1090 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698