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

Unified Diff: blimp/client/compositor/blimp_task_graph_runner.h

Issue 1295243003: Initial commit of the blimp/ folder and target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address final nits. Created 5 years, 3 months 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 side-by-side diff with in-line comments
Download patch
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..66b1a2a1a76ffd0b07b4d24ec7b250ba196db320
--- /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 {
+
+// TaskGraphRunner that runs on a single thread. See cc::TaskGraphRunner for
+// details.
+class BlimpTaskGraphRunner : public cc::TaskGraphRunner,
+ public base::DelegateSimpleThread::Delegate {
+ public:
+ BlimpTaskGraphRunner();
+ ~BlimpTaskGraphRunner() override;
+
+ private:
+ // base::DelegateSimpleThread::Delegate implementation.
+ void Run() override;
+
+ base::DelegateSimpleThread worker_thread_;
+
+ DISALLOW_COPY_AND_ASSIGN(BlimpTaskGraphRunner);
+};
+
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_

Powered by Google App Engine
This is Rietveld 408576698