OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h" | 5 #include "content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <fcntl.h> | 9 #include <fcntl.h> |
10 #include <sys/socket.h> | 10 #include <sys/socket.h> |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 // Preload the Mali library. | 215 // Preload the Mali library. |
216 dlopen("/usr/lib/libmali.so", dlopen_flag); | 216 dlopen("/usr/lib/libmali.so", dlopen_flag); |
217 | 217 |
218 // Preload the Tegra libraries. | 218 // Preload the Tegra libraries. |
219 dlopen("/usr/lib/libnvrm.so", dlopen_flag); | 219 dlopen("/usr/lib/libnvrm.so", dlopen_flag); |
220 dlopen("/usr/lib/libnvrm_graphics.so", dlopen_flag); | 220 dlopen("/usr/lib/libnvrm_graphics.so", dlopen_flag); |
221 dlopen("/usr/lib/libnvidia-glsi.so", dlopen_flag); | 221 dlopen("/usr/lib/libnvidia-glsi.so", dlopen_flag); |
222 dlopen("/usr/lib/libnvidia-rmapi-tegra.so", dlopen_flag); | 222 dlopen("/usr/lib/libnvidia-rmapi-tegra.so", dlopen_flag); |
223 dlopen("/usr/lib/libnvidia-eglcore.so", dlopen_flag); | 223 dlopen("/usr/lib/libnvidia-eglcore.so", dlopen_flag); |
224 // TODO(davidung): remove these libraries before nyan launch. | 224 // TODO(davidung): remove these libraries before nyan launch. |
225 dlopen("/usr/lib/libtegrav4l2.so", dlopen_flag); | |
Jorge Lucangeli Obes
2014/03/25 21:15:14
Is this really needed?
shivdasp
2014/03/26 02:54:25
Yes this is needed for the video decode accelerati
Jorge Lucangeli Obes
2014/03/26 03:15:48
I apologize, I wasn't clear. I meant "is this need
shivdasp
2014/03/26 03:34:29
I get your point.
I think all the libraries that D
Jorge Lucangeli Obes
2014/03/26 16:47:24
Thanks for the explanation. Then my only suggestio
shivdasp
2014/03/26 21:30:52
Yes I have tested with David's change too.
Neverth
| |
226 // Resetting errno since platform-specific libraries will fail on other | |
227 // platforms. | |
228 errno = 0; | |
225 | 229 |
226 return true; | 230 return true; |
227 } | 231 } |
228 | 232 |
229 } // namespace content | 233 } // namespace content |
OLD | NEW |