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

Unified Diff: services/ui/public/cpp/lib/raster_thread_helper.cc

Issue 2196503003: Revert of services/ui: Revert CLs that broke Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « services/ui/public/cpp/lib/gles2_context.cc ('k') | services/ui/public/cpp/raster_thread_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/lib/raster_thread_helper.cc
diff --git a/services/ui/public/cpp/lib/raster_thread_helper.cc b/services/ui/public/cpp/lib/raster_thread_helper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..91efdf2336055feb8dbeb055a51fd1c9ed35ac65
--- /dev/null
+++ b/services/ui/public/cpp/lib/raster_thread_helper.cc
@@ -0,0 +1,27 @@
+// 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.
+
+#include "services/ui/public/cpp/raster_thread_helper.h"
+
+#include "base/logging.h"
+#include "base/threading/simple_thread.h"
+#include "cc/raster/single_thread_task_graph_runner.h"
+
+namespace ui {
+
+RasterThreadHelper::RasterThreadHelper()
+ : task_graph_runner_(new cc::SingleThreadTaskGraphRunner) {
+ task_graph_runner_->Start("CompositorTileWorker1",
+ base::SimpleThread::Options());
+}
+
+RasterThreadHelper::~RasterThreadHelper() {
+ task_graph_runner_->Shutdown();
+}
+
+cc::TaskGraphRunner* RasterThreadHelper::task_graph_runner() {
+ return task_graph_runner_.get();
+}
+
+} // namespace ui
« no previous file with comments | « services/ui/public/cpp/lib/gles2_context.cc ('k') | services/ui/public/cpp/raster_thread_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698