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

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

Issue 2146733003: Remove USE_OZONE in video files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 4 years, 5 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
« no previous file with comments | « content/common/BUILD.gn ('k') | media/gpu/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d356897d9e0740668884c496307960ca5c91dddb..7dc9fa7cd762e29b23b39117d455015035cf20a0 100644
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
@@ -78,8 +78,8 @@ inline bool IsArchitectureArm() {
#endif
}
-inline bool IsOzone() {
-#if defined(USE_OZONE)
+inline bool UseV4L2Codec() {
+#if defined(USE_V4L2_CODEC)
return true;
#else
return false;
@@ -343,7 +343,7 @@ void GpuProcessPolicy::InitGpuBrokerProcess(
if (!IsChromeOS()) {
permissions.push_back(
BrokerFilePermission::ReadWriteCreateUnlinkRecursive(kDevShm));
- } else if (IsArchitectureArm() || IsOzone()){
Jorge Lucangeli Obes 2016/07/13 13:09:17 Why did you remove IsArchitectureArm?
wuchengli 2016/07/13 13:26:04 We now use USE_V4L2_CODEC to decide if a device ca
+ } else if (UseV4L2Codec()){
AddV4L2GpuWhitelist(&permissions);
if (UseLibV4L2()) {
dlopen("/usr/lib/libv4l2.so", RTLD_NOW|RTLD_GLOBAL|RTLD_NODELETE);
« no previous file with comments | « content/common/BUILD.gn ('k') | media/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698