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

Unified Diff: ui/ozone/platform/dri/io_helper_thread.cc

Issue 856423002: [Ozone-Dri] Decouple the IO helper thread from DriWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gbm-wrapper
Patch Set: . Created 5 years, 11 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: ui/ozone/platform/dri/io_helper_thread.cc
diff --git a/ui/ozone/platform/dri/io_helper_thread.cc b/ui/ozone/platform/dri/io_helper_thread.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6491e3196f3f86eeda9e5d07633957f5e1df4e44
--- /dev/null
+++ b/ui/ozone/platform/dri/io_helper_thread.cc
@@ -0,0 +1,23 @@
+// 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 "ui/ozone/platform/dri/io_helper_thread.h"
+
+namespace ui {
+
+IOHelperThread::IOHelperThread() : Thread("DriIOThread") {
+}
+
+IOHelperThread::~IOHelperThread() {
+ Stop();
+}
+
+void IOHelperThread::Initialize() {
+ DCHECK(!IsRunning());
+
+ if (!StartWithOptions(base::Thread::Options(base::MessageLoop::TYPE_IO, 0)))
+ LOG(FATAL) << "Failed to start the IO helper thread";
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698