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

Unified Diff: content/common/sandbox_linux/bpf_gpu_policy_linux.cc

Issue 1743543004: Enable Accelerated Video Decode in Linux Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use std::tie Created 4 years, 10 months 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/sandbox_linux/bpf_gpu_policy_linux.cc
diff --git a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
index d0aefb3d693095ac34204225eca0b9131f58e285..2fda5435689e553a1dc1e7d791c704006f457b23 100644
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
@@ -304,8 +304,14 @@ bool GpuProcessPolicy::PreSandboxHook() {
const char* I965HybridDrvVideoPath = NULL;
if (IsArchitectureX86_64()) {
- I965DrvVideoPath = "/usr/lib64/va/drivers/i965_drv_video.so";
- I965HybridDrvVideoPath = "/usr/lib64/va/drivers/hybrid_drv_video.so";
+ if (IsChromeOS()) {
+ I965DrvVideoPath = "/usr/lib64/va/drivers/i965_drv_video.so";
+ I965HybridDrvVideoPath = "/usr/lib64/va/drivers/hybrid_drv_video.so";
+ } else {
+ // TODO(dshwang): it's the path for Ubuntu. Support it in general.
+ // crbug.com/590209
+ I965DrvVideoPath = "/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so";
+ }
} else if (IsArchitectureI386()) {
I965DrvVideoPath = "/usr/lib/va/drivers/i965_drv_video.so";
}

Powered by Google App Engine
This is Rietveld 408576698