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 #ifndef COMPONENTS_MUS_GLES2_RASTER_THREAD_HELPER_H_ | 5 #ifndef SERVICES_UI_GLES2_RASTER_THREAD_HELPER_H_ |
6 #define COMPONENTS_MUS_GLES2_RASTER_THREAD_HELPER_H_ | 6 #define SERVICES_UI_GLES2_RASTER_THREAD_HELPER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 class TaskGraphRunner; | 13 class TaskGraphRunner; |
14 class SingleThreadTaskGraphRunner; | 14 class SingleThreadTaskGraphRunner; |
15 } | 15 } |
16 | 16 |
17 namespace gles2 { | 17 namespace gles2 { |
18 | 18 |
19 class RasterThreadHelper { | 19 class RasterThreadHelper { |
20 public: | 20 public: |
21 RasterThreadHelper(); | 21 RasterThreadHelper(); |
22 ~RasterThreadHelper(); | 22 ~RasterThreadHelper(); |
23 | 23 |
24 cc::TaskGraphRunner* task_graph_runner(); | 24 cc::TaskGraphRunner* task_graph_runner(); |
25 | 25 |
26 private: | 26 private: |
27 std::unique_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_; | 27 std::unique_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(RasterThreadHelper); | 29 DISALLOW_COPY_AND_ASSIGN(RasterThreadHelper); |
30 }; | 30 }; |
31 | 31 |
32 } // namespace gles2 | 32 } // namespace gles2 |
33 | 33 |
34 #endif // COMPONENTS_MUS_GLES2_RASTER_THREAD_HELPER_H_ | 34 #endif // SERVICES_UI_GLES2_RASTER_THREAD_HELPER_H_ |
OLD | NEW |