diff options
author | Tim Murray <timmurray@google.com> | 2015-04-07 20:59:39 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-07 20:59:39 +0000 |
commit | d782c57d376f27e511692ac6259759dd5a0bdced (patch) | |
tree | 09e9d3b8bfadeb37516a332abcebb67177041464 /rs/java/android/renderscript/ScriptC.java | |
parent | 77e46d214db035f150e8522fad03edec913939e8 (diff) | |
parent | 5352411a8c41dd1c3c51a28cdd0b09f42e246b33 (diff) |
am 5352411a: Merge "Move cache dir to its own class."
* commit '5352411a8c41dd1c3c51a28cdd0b09f42e246b33':
Move cache dir to its own class.
Diffstat (limited to 'rs/java/android/renderscript/ScriptC.java')
-rw-r--r-- | rs/java/android/renderscript/ScriptC.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rs/java/android/renderscript/ScriptC.java b/rs/java/android/renderscript/ScriptC.java index 64d21e49dee5..bf706c131e85 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(); } |