From 4e7f57add6f3e574200097d0f66399d395878c4a Mon Sep 17 00:00:00 2001 From: Cody Northrop Date: Wed, 25 Oct 2017 14:07:48 -0600 Subject: [PATCH] Rootless GPU Debug This commit adds a new toggle to allow loading GPU debug layers from the base directory of debuggable applications. It corresponds to changes to GraphicsEnvironment to look for matching application and layer list, which are then selectively passed on the native components, like the Vulkan loader. Bug: 63708377 Test: Manual, CTS tests to follow Change-Id: Id6917a7b34df4a37905fafe08a4c1b6503abbb0c --- res/xml/development_settings.xml | 5 + .../DevelopmentSettingsDashboardFragment.java | 1 + ...bleGpuDebugLayersPreferenceController.java | 86 ++++++++++++ ...puDebugLayersPreferenceControllerTest.java | 124 ++++++++++++++++++ 4 files changed, 216 insertions(+) create mode 100644 src/com/android/settings/development/EnableGpuDebugLayersPreferenceController.java create mode 100644 tests/robotests/src/com/android/settings/development/EnableGpuDebugLayersPreferenceControllerTest.java diff --git a/res/xml/development_settings.xml b/res/xml/development_settings.xml index 9857280ecf4..ce8e67db5cf 100644 --- a/res/xml/development_settings.xml +++ b/res/xml/development_settings.xml @@ -177,6 +177,11 @@ android:title="@string/feature_flags_dashboard_title" android:fragment="com.android.settings.development.featureflags.FeatureFlagsDashboard"/> + +