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

Commit 20ae0298 authored by John Reck's avatar John Reck Committed by Automerger Merge Worker
Browse files

Merge "Move shader cache out of code cache" into udc-dev am: d653627d am: 5f386a14

parents 7f99c26b 5f386a14
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -6657,12 +6657,13 @@ public final class ActivityThread extends ClientTransactionHandler
            // Setup a location to store generated/compiled graphics code.
            final Context deviceContext = context.createDeviceProtectedStorageContext();
            final File codeCacheDir = deviceContext.getCodeCacheDir();
            if (codeCacheDir != null) {
            final File deviceCacheDir = deviceContext.getCacheDir();
            if (codeCacheDir != null && deviceCacheDir != null) {
                try {
                    int uid = Process.myUid();
                    String[] packages = getPackageManager().getPackagesForUid(uid);
                    if (packages != null) {
                        HardwareRenderer.setupDiskCache(codeCacheDir);
                        HardwareRenderer.setupDiskCache(deviceCacheDir);
                        RenderScriptCacheDir.setupDiskCache(codeCacheDir);
                    }
                } catch (RemoteException e) {