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

Side by Side Diff: components/mus/gles2/raster_thread_helper.h

Issue 1449133002: TaskGraphRunner refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 5 years 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | components/mus/gles2/raster_thread_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 9
10 namespace cc { 10 namespace cc {
11 class TaskGraphRunner; 11 class TaskGraphRunner;
12 class SingleThreadTaskGraphRunner;
12 } 13 }
13 14
14 namespace gles2 { 15 namespace gles2 {
15 16
16 class RasterThreadHelper { 17 class RasterThreadHelper {
17 public: 18 public:
18 RasterThreadHelper(); 19 RasterThreadHelper();
19 ~RasterThreadHelper(); 20 ~RasterThreadHelper();
20 21
21 cc::TaskGraphRunner* task_graph_runner() { return task_graph_runner_.get(); } 22 cc::TaskGraphRunner* task_graph_runner();
22 23
23 private: 24 private:
24 class RasterThread; 25 scoped_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_;
25
26 scoped_ptr<cc::TaskGraphRunner> task_graph_runner_;
27 scoped_ptr<RasterThread> raster_thread_;
28 26
29 DISALLOW_COPY_AND_ASSIGN(RasterThreadHelper); 27 DISALLOW_COPY_AND_ASSIGN(RasterThreadHelper);
30 }; 28 };
31 29
32 } // namespace gles2 30 } // namespace gles2
33 31
34 #endif // COMPONENTS_MUS_GLES2_RASTER_THREAD_HELPER_H_ 32 #endif // COMPONENTS_MUS_GLES2_RASTER_THREAD_HELPER_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | components/mus/gles2/raster_thread_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698