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

Unified Diff: media/base/bind_to_loop.cc

Issue 27420004: Remove threading from RendererGpuVideoAcceleratorFactories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dthread
Patch Set: d731420c Comment update, 'git cl format', rebase Created 7 years, 2 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: media/base/bind_to_loop.cc
diff --git a/media/base/bind_to_loop.cc b/media/base/bind_to_loop.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e04591f255a6e16ed3acffa35d80255fed1e6494
--- /dev/null
+++ b/media/base/bind_to_loop.cc
@@ -0,0 +1,19 @@
+// Copyright (c) 2013 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 "media/base/bind_to_loop.h"
+
+namespace media {
+
+namespace internal {
+
+void TrampolineSyncCaller(const base::Closure& closure,
+ base::WaitableEvent* waiter) {
+ closure.Run();
+ waiter->Signal();
+}
+
+} // namespace internal
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698