Chromium Code Reviews| Index: blimp/client/compositor/blimp_task_graph_runner.h |
| diff --git a/blimp/client/compositor/blimp_task_graph_runner.h b/blimp/client/compositor/blimp_task_graph_runner.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1a6ef9ddd7ef726a9a642724b77800e6eda76849 |
| --- /dev/null |
| +++ b/blimp/client/compositor/blimp_task_graph_runner.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef BLIMP_CLIENT_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_ |
| +#define BLIMP_CLIENT_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_ |
| + |
| +#include "base/macros.h" |
| +#include "base/threading/simple_thread.h" |
| +#include "cc/raster/task_graph_runner.h" |
| + |
| +namespace blimp { |
| + |
| +// A TaskGraphRunner that runs on a single thread. See cc::TaskGraphRunner for |
|
Wez
2015/09/03 00:49:28
nit: No need for "A"
David Trainor- moved to gerrit
2015/09/03 06:33:22
Done.
|
| +// details. |
| +class BlimpTaskGraphRunner : public cc::TaskGraphRunner, |
| + public base::DelegateSimpleThread::Delegate { |
| + public: |
| + BlimpTaskGraphRunner(); |
| + ~BlimpTaskGraphRunner() override; |
| + |
| + private: |
| + // base::DelegateSimpleThread::Delegate implementation |
|
Wez
2015/09/03 00:49:28
nit: Missing .
David Trainor- moved to gerrit
2015/09/03 06:33:22
Done.
|
| + void Run() override; |
| + |
| + base::DelegateSimpleThread worker_thread_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(BlimpTaskGraphRunner); |
| +}; |
| + |
| +} // namespace blimp |
| + |
| +#endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_ |