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

Unified Diff: content/common/gpu/media/vaapi_video_decode_accelerator.cc

Issue 1083883003: Move BindToCurrentLoop from media/base/ to base/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix media/base/callback_holder.h compile Created 5 years, 8 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: content/common/gpu/media/vaapi_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.cc b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
index 060c87d93926b4f6f132495dbb06509dd4248876..b6970410ee4d0f4472de1f4553f06d6ee126ff1d 100644
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.cc
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.cc
@@ -5,6 +5,7 @@
#include "content/common/gpu/media/vaapi_video_decode_accelerator.h"
#include "base/bind.h"
+#include "base/bind_to_current_loop.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/stl_util.h"
@@ -15,7 +16,6 @@
#include "content/common/gpu/media/accelerated_video_decoder.h"
#include "content/common/gpu/media/h264_decoder.h"
#include "content/common/gpu/media/vaapi_picture.h"
-#include "media/base/bind_to_current_loop.h"
#include "media/video/picture.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_image.h"
@@ -196,7 +196,7 @@ VaapiVideoDecodeAccelerator::VaapiVideoDecodeAccelerator(
bind_image_(bind_image),
weak_this_factory_(this) {
weak_this_ = weak_this_factory_.GetWeakPtr();
- va_surface_release_cb_ = media::BindToCurrentLoop(
+ va_surface_release_cb_ = base::BindToCurrentLoop(
base::Bind(&VaapiVideoDecodeAccelerator::RecycleVASurfaceID, weak_this_));
}

Powered by Google App Engine
This is Rietveld 408576698