OSDN Git Service

Create GraphicsEnvironment for communicating with driver loaders
authorJesse Hall <jessehall@google.com>
Mon, 12 Dec 2016 20:53:02 +0000 (12:53 -0800)
committerJesse Hall <jessehall@google.com>
Sun, 15 Jan 2017 01:31:56 +0000 (17:31 -0800)
commitb12249b67193df07a8ffc3cad0c41643662b887b
tree41aec4764927a38e739a0b6a18e31edef1bec1c8
parentc1fdd5df4a18bbf70a57676a87fa7580ec6b740a
Create GraphicsEnvironment for communicating with driver loaders

The GraphicsEnvironment class is given information during application
start, and makes it available to EGL/GLES/Vulkan loaders that don't
have easy access to the VM or to the application Context. Currently
only the driver path is handled, but the existing support for setting
library paths (for Vulkan extensions) and cache directory information
should move here.

Bug: 33531483
Test: various apps w/ and w/o driver package installed
Change-Id: I5820d3d1301d5461e10706f551b268c54d4f8926
core/java/android/app/ActivityThread.java
core/java/android/os/GraphicsEnvironment.java [new file with mode: 0644]
core/jni/Android.mk
core/jni/AndroidRuntime.cpp
core/jni/android_os_GraphicsEnvironment.cpp [new file with mode: 0644]