summaryrefslogtreecommitdiffstats
path: root/rs/java/android/renderscript/ScriptC.java
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2015-04-07 13:24:14 -0700
committerTim Murray <timmurray@google.com>2015-04-07 13:24:14 -0700
commite1e6c66198e628f0784e1731bbdb775da479075b (patch)
tree97114bd130dcb27440f32aa56cc452efa2111a30 /rs/java/android/renderscript/ScriptC.java
parentd95e58cb609228c4c4b231e00d6bb648e9dcaf71 (diff)
downloadframeworks_base-e1e6c66198e628f0784e1731bbdb775da479075b.zip
frameworks_base-e1e6c66198e628f0784e1731bbdb775da479075b.tar.gz
frameworks_base-e1e6c66198e628f0784e1731bbdb775da479075b.tar.bz2
Move cache dir to its own class.
This prevents us from loading the RS static initializer all the time. Change-Id: I8cea7540e50251aba8c2f199f06f344f991e7d7f
Diffstat (limited to 'rs/java/android/renderscript/ScriptC.java')
-rw-r--r--rs/java/android/renderscript/ScriptC.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/rs/java/android/renderscript/ScriptC.java b/rs/java/android/renderscript/ScriptC.java
index 64d21e4..bf706c1 100644
--- a/rs/java/android/renderscript/ScriptC.java
+++ b/rs/java/android/renderscript/ScriptC.java
@@ -124,7 +124,7 @@ public class ScriptC extends Script {
// Create the RS cache path if we haven't done so already.
if (mCachePath == null) {
- File f = new File(rs.mCacheDir, CACHE_PATH);
+ File f = new File(RenderScriptCacheDir.mCacheDir, CACHE_PATH);
mCachePath = f.getAbsolutePath();
f.mkdirs();
}
@@ -135,7 +135,7 @@ public class ScriptC extends Script {
private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitcode) {
// Create the RS cache path if we haven't done so already.
if (mCachePath == null) {
- File f = new File(rs.mCacheDir, CACHE_PATH);
+ File f = new File(RenderScriptCacheDir.mCacheDir, CACHE_PATH);
mCachePath = f.getAbsolutePath();
f.mkdirs();
}