Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f52b4aa authored by Victor Khimenko's avatar Victor Khimenko
Browse files

Add fallback case to layers_extensions.cpp

Bug: http://b/79940628

Test: cts-tradefed run commandAndExit cts -m CtsGpuToolsHostTestCases

Change-Id: I5b15e9dbf4bc9887901f584741980c1eca3252a7
Merged-In: I9f4ffb6b3afa8c4b8048e1d579c1befbb6565e19
parent d68f003c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -29,7 +29,8 @@ void setDriverPath(JNIEnv* env, jobject clazz, jstring path) {
}

void setLayerPaths_native(JNIEnv* env, jobject clazz, jobject classLoader, jstring layerPaths) {
    android_namespace_t* appNamespace = android::FindNamespaceByClassLoader(env, classLoader);
    android::NativeLoaderNamespace* appNamespace = android::FindNativeLoaderNamespaceByClassLoader(
        env, classLoader);
    ScopedUtfChars layerPathsChars(env, layerPaths);
    android::GraphicsEnv::getInstance().setLayerPaths(appNamespace, layerPathsChars.c_str());
}