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