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

Unified Diff: components/scheduler/child/webthread_impl_for_worker_scheduler.h

Issue 1589463002: compositor worker: Use a WebThread for the compositor thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self.nit Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/scheduler/child/webthread_impl_for_worker_scheduler.h
diff --git a/components/scheduler/child/webthread_impl_for_worker_scheduler.h b/components/scheduler/child/webthread_impl_for_worker_scheduler.h
index a1982379898df9c82ec4b66141dfc8dbab74db7c..306cbd8c8b03e59679f6b71149ec05a80db6b8d5 100644
--- a/components/scheduler/child/webthread_impl_for_worker_scheduler.h
+++ b/components/scheduler/child/webthread_impl_for_worker_scheduler.h
@@ -33,6 +33,8 @@ class SCHEDULER_EXPORT WebThreadImplForWorkerScheduler
base::Thread::Options options);
~WebThreadImplForWorkerScheduler() override;
+ void Init();
+
// blink::WebThread implementation.
blink::WebScheduler* scheduler() const override;
blink::PlatformThreadId threadId() const override;
@@ -45,7 +47,12 @@ class SCHEDULER_EXPORT WebThreadImplForWorkerScheduler
// base::MessageLoop::DestructionObserver implementation.
void WillDestroyCurrentMessageLoop() override;
+ protected:
+ base::Thread* thread() const { return thread_.get(); }
+
private:
+ virtual scoped_ptr<scheduler::WorkerScheduler> CreateWorkerScheduler();
+
void AddTaskObserverInternal(
base::MessageLoop::TaskObserver* observer) override;
void RemoveTaskObserverInternal(

Powered by Google App Engine
This is Rietveld 408576698