Chromium Code Reviews| 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); |