OLD | NEW |
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 "components/view_manager/gles2/raster_thread_helper.h" | 5 #include "components/mus/gles2/raster_thread_helper.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/threading/simple_thread.h" | 8 #include "base/threading/simple_thread.h" |
9 #include "cc/raster/task_graph_runner.h" | 9 #include "cc/raster/task_graph_runner.h" |
10 | 10 |
11 namespace gles2 { | 11 namespace gles2 { |
12 | 12 |
13 class RasterThreadHelper::RasterThread : public base::SimpleThread { | 13 class RasterThreadHelper::RasterThread : public base::SimpleThread { |
14 public: | 14 public: |
15 RasterThread(cc::TaskGraphRunner* task_graph_runner) | 15 RasterThread(cc::TaskGraphRunner* task_graph_runner) |
(...skipping 14 matching lines...) Expand all Loading... |
30 raster_thread_(new RasterThread(task_graph_runner_.get())) { | 30 raster_thread_(new RasterThread(task_graph_runner_.get())) { |
31 raster_thread_->Start(); | 31 raster_thread_->Start(); |
32 } | 32 } |
33 | 33 |
34 RasterThreadHelper::~RasterThreadHelper() { | 34 RasterThreadHelper::~RasterThreadHelper() { |
35 task_graph_runner_->Shutdown(); | 35 task_graph_runner_->Shutdown(); |
36 raster_thread_->Join(); | 36 raster_thread_->Join(); |
37 } | 37 } |
38 | 38 |
39 } // namespace gles2 | 39 } // namespace gles2 |
OLD | NEW |