Merge "GPU Debug Layers: Allow multiple layer apps" into qt-dev

am: 3432b6df37

Change-Id: Ic16d2aad84cb78051db52a00a2ab1b5f0202d705
This commit is contained in:
Cody Northrop
2019-04-10 18:22:04 -07:00
committed by android-build-merger

View File

@@ -188,11 +188,16 @@ public class GraphicsEnvironment {
if (gpuDebugLayerApp != null && !gpuDebugLayerApp.isEmpty()) {
Log.i(TAG, "GPU debug layer app: " + gpuDebugLayerApp);
final String paths = getDebugLayerAppPaths(pm, gpuDebugLayerApp);
if (paths != null) {
// Append the path so files placed in the app's base directory will
// override the external path
layerPaths += paths + ":";
// If a colon is present, treat this as multiple apps, so Vulkan and GLES
// layer apps can be provided at the same time.
String[] layerApps = gpuDebugLayerApp.split(":");
for (int i = 0; i < layerApps.length; i++) {
String paths = getDebugLayerAppPaths(pm, layerApps[i]);
if (paths != null) {
// Append the path so files placed in the app's base directory will
// override the external path
layerPaths += paths + ":";
}
}
}