OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "components/mus/gles2/raster_thread_helper.h" | |
6 | |
7 #include "base/logging.h" | |
8 #include "base/threading/simple_thread.h" | |
9 #include "cc/raster/single_thread_task_graph_runner.h" | |
10 | |
11 namespace gles2 { | |
12 | |
13 RasterThreadHelper::RasterThreadHelper() | |
14 : task_graph_runner_(new cc::SingleThreadTaskGraphRunner) { | |
15 task_graph_runner_->Start("CompositorTileWorker1", | |
16 base::SimpleThread::Options()); | |
17 } | |
18 | |
19 RasterThreadHelper::~RasterThreadHelper() { | |
20 task_graph_runner_->Shutdown(); | |
21 } | |
22 | |
23 cc::TaskGraphRunner* RasterThreadHelper::task_graph_runner() { | |
24 return task_graph_runner_.get(); | |
25 } | |
26 | |
27 } // namespace gles2 | |
OLD | NEW |