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

Side by Side Diff: blimp/common/compositor/blimp_task_graph_runner.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
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 BLIMP_COMMON_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_ 5 #ifndef BLIMP_COMMON_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_
6 #define BLIMP_COMMON_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_ 6 #define BLIMP_COMMON_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/simple_thread.h" 9 #include "base/threading/simple_thread.h"
10 #include "blimp/common/blimp_common_export.h" 10 #include "blimp/common/blimp_common_export.h"
11 #include "cc/raster/task_graph_runner.h" 11 #include "cc/raster/single_thread_task_graph_runner.h"
12 12
13 namespace blimp { 13 namespace blimp {
14 14
15 // TaskGraphRunner that runs on a single thread. See cc::TaskGraphRunner for 15 // TaskGraphRunner that runs on a single thread. See
16 // details. Used by client's compositor and engine's dummy UI context factory. 16 // cc::SingleThreadTaskGraphRunner for details. Used by client's compositor and
17 // engine's dummy UI context factory.
17 class BLIMP_COMMON_EXPORT BlimpTaskGraphRunner 18 class BLIMP_COMMON_EXPORT BlimpTaskGraphRunner
18 : public cc::TaskGraphRunner, 19 : public cc::SingleThreadTaskGraphRunner {
19 public base::DelegateSimpleThread::Delegate {
20 public: 20 public:
21 BlimpTaskGraphRunner(); 21 BlimpTaskGraphRunner();
22 ~BlimpTaskGraphRunner() override; 22 ~BlimpTaskGraphRunner() override;
23 23
24 private: 24 private:
25 // base::DelegateSimpleThread::Delegate implementation.
26 void Run() override;
27
28 base::DelegateSimpleThread worker_thread_;
29
30 DISALLOW_COPY_AND_ASSIGN(BlimpTaskGraphRunner); 25 DISALLOW_COPY_AND_ASSIGN(BlimpTaskGraphRunner);
31 }; 26 };
32 27
33 } // namespace blimp 28 } // namespace blimp
34 29
35 #endif // BLIMP_COMMON_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_ 30 #endif // BLIMP_COMMON_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_
OLDNEW
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | blimp/common/compositor/blimp_task_graph_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698