Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: content/common/gpu/media/vaapi_video_decode_accelerator.cc

Issue 825163004: Add Vaapi support on Ozone/Freon (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698