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

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: cast_shell_linux build fix 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..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";
}

Powered by Google App Engine
This is Rietveld 408576698