Chromium Code Reviews| 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 025d971074f1724d700f965fe4bd914ea5a02a76..d8c533800950e0465b8cde60b01c092254e23db5 100644 |
| --- a/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| +++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| @@ -31,9 +31,8 @@ |
| #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) |
| #include "content/common/gpu/media/v4l2_video_decode_accelerator.h" |
| #include "content/common/gpu/media/v4l2_video_device.h" |
| -#elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11) |
| +#elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
| #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" |
| -#include "ui/gl/gl_context_glx.h" |
| #include "ui/gl/gl_implementation.h" |
| #elif defined(USE_OZONE) |
| #include "media/ozone/media_ozone_platform.h" |
| @@ -273,17 +272,9 @@ void GpuVideoDecodeAccelerator::Initialize( |
| make_context_current_, |
| device.Pass(), |
| io_message_loop_)); |
| -#elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) && defined(USE_X11) |
| - if (gfx::GetGLImplementation() != gfx::kGLImplementationDesktopGL) { |
| - VLOG(1) << "HW video decode acceleration not available without " |
| - "DesktopGL (GLX)."; |
| - SendCreateDecoderReply(init_done_msg, false); |
| - return; |
| - } |
| - gfx::GLContextGLX* glx_context = |
| - static_cast<gfx::GLContextGLX*>(stub_->decoder()->GetGLContext()); |
| +#elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
|
jiajia.qin
2014/09/17 10:45:24
It seems that it conflicts with MediaOzonePlatform
spang
2014/09/17 16:42:39
Wayland builds for desktop (chromeos=0) and should
|
| video_decode_accelerator_.reset(new VaapiVideoDecodeAccelerator( |
| - glx_context->display(), make_context_current_)); |
| + stub_->decoder()->GetGLContext(), make_context_current_)); |
| #elif defined(USE_OZONE) |
| media::MediaOzonePlatform* platform = |
| media::MediaOzonePlatform::GetInstance(); |