Chromium Code Reviews| Index: content/common/gpu/media/vaapi_wrapper.cc |
| diff --git a/content/common/gpu/media/vaapi_wrapper.cc b/content/common/gpu/media/vaapi_wrapper.cc |
| index c267af50bd4cd9ae4cedb77c6cd575d752d88539..01119d093c24e07aecf594f08588b265f27f30b4 100644 |
| --- a/content/common/gpu/media/vaapi_wrapper.cc |
| +++ b/content/common/gpu/media/vaapi_wrapper.cc |
| @@ -291,10 +291,11 @@ bool VaapiWrapper::VaInitialize(const base::Closure& report_error_to_uma_cb) { |
| #if defined(USE_X11) |
| va_display_ = vaGetDisplay(gfx::GetXDisplay()); |
| #elif defined(USE_OZONE) |
| - ui::OzonePlatform* platform = ui::OzonePlatform::GetInstance(); |
| - ui::SurfaceFactoryOzone* factory = platform->GetSurfaceFactoryOzone(); |
| - |
| - va_display_ = vaGetDisplayDRM(factory->GetDrmFd()); |
| + const char* kDriRenderNode0Path = "/dev/dri/renderD128"; |
|
Pawel Osciak
2015/04/08 23:39:20
I don't see this node on BYT or HSW for example...
|
| + drm_file_ = base::File(base::FilePath::FromUTF8Unsafe(kDriRenderNode0Path), |
| + base::File::FLAG_OPEN | base::File::FLAG_READ | |
| + base::File::FLAG_WRITE); |
| + va_display_ = vaGetDisplayDRM(drm_file_.GetPlatformFile()); |
| #endif // USE_X11 |
| if (!vaDisplayIsValid(va_display_)) { |