| 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
|
|
|