summaryrefslogtreecommitdiffstats
path: root/cc/test/test_task_graph_runner.h
blob: 4588a2ab66b8447da6e7c1419e7a06e83b085d06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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 CC_TEST_TEST_TASK_GRAPH_RUNNER_H_
#define CC_TEST_TEST_TASK_GRAPH_RUNNER_H_

#include "base/threading/simple_thread.h"
#include "cc/raster/task_graph_runner.h"

namespace cc {

class TestTaskGraphRunner : public TaskGraphRunner,
                            public base::DelegateSimpleThread::Delegate {
 public:
  TestTaskGraphRunner();
  ~TestTaskGraphRunner() override;

  // Overridden from base::DelegateSimpleThread::Delegate:
  void Run() override;

 private:
  base::DelegateSimpleThread worker_thread_;

  DISALLOW_COPY_AND_ASSIGN(TestTaskGraphRunner);
};

}  // namespace cc

#endif  // CC_TEST_TEST_TASK_GRAPH_RUNNER_H_