Index: content/common/gpu/media/video_decode_accelerator_unittest.cc |
diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc |
index 28832c7c0a0f0efa4bceefb46ef572d439423b48..66ab398193f21c932a58ff82a3b3a140fe7cf26b 100644 |
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc |
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc |
@@ -14,6 +14,7 @@ |
// - Finally actual TEST cases are at the bottom of this file, using the above |
// infrastructure. |
+#include <dlfcn.h> |
#include <fcntl.h> |
#include <sys/stat.h> |
#include <sys/types.h> |
@@ -559,7 +560,8 @@ void GLRenderingVDAClient::CreateAndStartDecoder() { |
#elif defined(OS_CHROMEOS) |
#if defined(ARCH_CPU_ARMEL) |
- scoped_ptr<V4L2Device> device = V4L2Device::Create(); |
+ scoped_ptr<V4L2Device> device = V4L2Device::Create( |
+ static_cast<EGLContext>(rendering_helper_->GetGLContext())); |
if (!device.get()) { |
NotifyError(media::VideoDecodeAccelerator::PLATFORM_FAILURE); |
return; |