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

Unified Diff: content/common/sandbox_seccomp_bpf_linux.cc

Issue 20962003: ExynosVideoEncodeAccelerator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_vea
Patch Set: 197ac76e Comments, sandbox fix, Created 7 years, 4 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/gpu/media/gpu_video_encode_accelerator.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_seccomp_bpf_linux.cc
diff --git a/content/common/sandbox_seccomp_bpf_linux.cc b/content/common/sandbox_seccomp_bpf_linux.cc
index 5d8c42a951d07c7cf25818592f2a98d74d992f8d..3217564e44337f4a75f12fefc51abd83c2212f6b 100644
--- a/content/common/sandbox_seccomp_bpf_linux.cc
+++ b/content/common/sandbox_seccomp_bpf_linux.cc
@@ -1794,13 +1794,18 @@ void AddArmMaliGpuWhitelist(std::vector<std::string>* read_whitelist,
static const char kDevMfcDecPath[] = "/dev/mfc-dec";
static const char kDevGsc1Path[] = "/dev/gsc1";
+ // Devices needed for video encode acceleration on ARM.
+ static const char kDevMfcEncPath[] = "/dev/mfc-enc";
jln (very slow on Chromium) 2013/08/14 04:30:17 Is there no way that this device could be opened,
sheu 2013/08/14 05:44:44 Yep. Every time you open the device you get anoth
+
read_whitelist->push_back(kMali0Path);
read_whitelist->push_back(kDevMfcDecPath);
read_whitelist->push_back(kDevGsc1Path);
+ read_whitelist->push_back(kDevMfcEncPath);
write_whitelist->push_back(kMali0Path);
write_whitelist->push_back(kDevMfcDecPath);
write_whitelist->push_back(kDevGsc1Path);
+ read_whitelist->push_back(kDevMfcEncPath);
hshi1 2013/08/14 01:21:35 Did you mean write_whitelist->push_back(kDevMfcEnc
jln (very slow on Chromium) 2013/08/14 04:30:17 If this works fine without write access, please re
sheu 2013/08/14 05:44:44 Lulz. I forgot to actually remove the --no-sandbo
}
void AddArmTegraGpuWhitelist(std::vector<std::string>* read_whitelist,
« no previous file with comments | « content/common/gpu/media/gpu_video_encode_accelerator.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698