Index: content/common/gpu/media/gpu_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
index 89e74b1ce852200c8b799f18aaa9c5b1fe011ef1..2fc071cb0927d2fecf69a1da1f087ce9ca58ce76 100644 |
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
@@ -9,7 +9,6 @@ |
#include "base/bind.h" |
#include "base/command_line.h" |
#include "base/logging.h" |
-#include "base/memory/ref_counted.h" |
#include "base/message_loop/message_loop_proxy.h" |
#include "base/stl_util.h" |
@@ -301,14 +300,14 @@ |
scoped_ptr<media::VideoDecodeAccelerator> decoder; |
#if defined(OS_CHROMEOS) && (defined(ARCH_CPU_ARMEL) || \ |
(defined(USE_OZONE) && defined(USE_V4L2_CODEC))) |
- scoped_refptr<V4L2Device> device = V4L2Device::Create(V4L2Device::kDecoder); |
+ scoped_ptr<V4L2Device> device = V4L2Device::Create(V4L2Device::kDecoder); |
if (device.get()) { |
decoder.reset(new V4L2VideoDecodeAccelerator( |
gfx::GLSurfaceEGL::GetHardwareDisplay(), |
stub_->decoder()->GetGLContext()->GetHandle(), |
weak_factory_for_io_.GetWeakPtr(), |
make_context_current_, |
- device, |
+ device.Pass(), |
io_message_loop_)); |
} |
#endif |