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..1dcb72c8a98e54c5a020fe5ceaff6c1f9b764ab9 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."; |
Pawel Osciak
2014/12/26 00:38:56
s/ "EGLGLES2.";/<< "EGLGLES2.";/
llandwerlin-old
2014/12/26 02:50:02
Done.
|
+ return false; |
+ } |
#endif // USE_X11 |
vaapi_wrapper_ = VaapiWrapper::Create( |