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

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

Issue 137023008: Add support for Tegra V4L2 VDA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 9 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_cros_arm_gpu_policy_linux.cc
diff --git a/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc b/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
index 02d54771346f4823f010682822327ee21ba9adcd..0802a73cb62c33dc8c4b61ebd5a1d3e137632f71 100644
--- a/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc
@@ -180,6 +180,10 @@ bool CrosArmGpuProcessPolicy::PreSandboxHook() {
// Preload the Mali library.
dlopen("/usr/lib/libmali.so", dlopen_flag);
+ dlopen("/usr/lib/libtegrav4l2.so", dlopen_flag);
+ // Resetting errno since platform-specific libraries will fail on other
+ // platforms.
+ errno = 0;
return true;
}

Powered by Google App Engine
This is Rietveld 408576698