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 add0b63071f4b6bf1a72b4cbf39d2731c838bf4c..b5f2b908f993e6cbcafca7b12a3edb93af25cb49 100644 |
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.cc |
@@ -111,6 +111,12 @@ bool VaapiVideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile, |
"DesktopGL (GLX)."; |
return false; |
} |
+#elif defined(USE_OZONE) |
+ if (gfx::GetGLImplementation() != gfx::kGLImplementationEGLGLES2) { |
+ DVLOG(1) << "HW video decode acceleration not available without " |
+ << "EGLGLES2."; |
+ return false; |
+ } |
#endif // USE_X11 |
vaapi_wrapper_ = VaapiWrapper::Create( |