Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / blimp / client / compositor / blimp_task_graph_runner.h
blob66b1a2a1a76ffd0b07b4d24ec7b250ba196db320
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
3 // found in the LICENSE file.
5 #ifndef BLIMP_CLIENT_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_
6 #define BLIMP_CLIENT_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_
8 #include "base/macros.h"
9 #include "base/threading/simple_thread.h"
10 #include "cc/raster/task_graph_runner.h"
12 namespace blimp {
14 // TaskGraphRunner that runs on a single thread. See cc::TaskGraphRunner for
15 // details.
16 class BlimpTaskGraphRunner : public cc::TaskGraphRunner,
17 public base::DelegateSimpleThread::Delegate {
18 public:
19 BlimpTaskGraphRunner();
20 ~BlimpTaskGraphRunner() override;
22 private:
23 // base::DelegateSimpleThread::Delegate implementation.
24 void Run() override;
26 base::DelegateSimpleThread worker_thread_;
28 DISALLOW_COPY_AND_ASSIGN(BlimpTaskGraphRunner);
31 } // namespace blimp
33 #endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_