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

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

Issue 730693005: Generalize V4L2 HW video codec device names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/gpu/media/v4l2_video_device.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de0a89f5ed9d16ac485cc356d215fe9ca61a3286..b4c26f59a569d6b3cdade8f079618a86933fb07b 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
@@ -59,17 +59,19 @@ void AddArmMaliGpuWhitelist(std::vector<BrokerFilePermission>* permissions) {
// Device file needed by the ARM GPU userspace.
static const char kMali0Path[] = "/dev/mali0";
- // Devices needed for video decode acceleration on ARM.
- static const char kDevMfcDecPath[] = "/dev/mfc-dec";
+ // Devices nodes for V4L2 video decode accelerator drivers.
+ static const char kDevVideoDecPath[] = "/dev/video-dec";
+
+ // Video processor used on ARM Exynos platforms.
static const char kDevGsc1Path[] = "/dev/gsc1";
- // Devices needed for video encode acceleration on ARM.
- static const char kDevMfcEncPath[] = "/dev/mfc-enc";
+ // Devices nodes for V4L2 video encode accelerator drivers.
+ static const char kDevVideoEncPath[] = "/dev/video-enc";
permissions->push_back(BrokerFilePermission::ReadWrite(kMali0Path));
- permissions->push_back(BrokerFilePermission::ReadWrite(kDevMfcDecPath));
+ permissions->push_back(BrokerFilePermission::ReadWrite(kDevVideoDecPath));
permissions->push_back(BrokerFilePermission::ReadWrite(kDevGsc1Path));
- permissions->push_back(BrokerFilePermission::ReadWrite(kDevMfcEncPath));
+ permissions->push_back(BrokerFilePermission::ReadWrite(kDevVideoEncPath));
}
void AddArmGpuWhitelist(std::vector<BrokerFilePermission>* permissions) {
« no previous file with comments | « content/common/gpu/media/v4l2_video_device.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698