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..e7f6f5024ef4b1b0aeb493e48b8fa4312e1d1abc 100644 |
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc |
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc |
@@ -304,8 +304,12 @@ bool GpuProcessPolicy::PreSandboxHook() { |
const char* I965HybridDrvVideoPath = NULL; |
if (IsArchitectureX86_64()) { |
+#if defined(OS_CHROMEOS) |
Jorge Lucangeli Obes
2016/02/26 18:02:44
Use the "IsChromeOS" function here.
dshwang
2016/02/26 18:15:34
Done.
|
I965DrvVideoPath = "/usr/lib64/va/drivers/i965_drv_video.so"; |
I965HybridDrvVideoPath = "/usr/lib64/va/drivers/hybrid_drv_video.so"; |
+#else |
+ I965DrvVideoPath = "/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so"; |
Jorge Lucangeli Obes
2016/02/26 18:02:44
Is this path guaranteed to be correct?
dshwang
2016/02/26 18:15:34
no, it depends on linux distribution.
I have next
Jorge Lucangeli Obes
2016/02/26 18:19:31
I don't have a preference, just pointing out that
dshwang
2016/02/26 18:34:59
Added TODO comment. The script will cover ChromeOS
|
+#endif |
} else if (IsArchitectureI386()) { |
I965DrvVideoPath = "/usr/lib/va/drivers/i965_drv_video.so"; |
} |