summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-04-10 10:56:36 -0700
committerStephen Hines <srhines@google.com>2013-04-10 10:56:36 -0700
commit4e8cf0c83c974d606812f2d152d7ae9db01570a6 (patch)
treed1df688ded6eb9e05522268cd6c91dc7288c0869 /graphics/java/android/renderscript/RenderScript.java
parentef1338415c4c0c3feb61935d2b56f3be18d96733 (diff)
parent0664479a2bb5dd3341eb666b7ebabaf871c3b95e (diff)
resolved conflicts for merge of 0664479a to master
Change-Id: Ia2cb081d575dbf2bf041143f1c4f553ecd2c24f3
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
-rw-r--r--graphics/java/android/renderscript/RenderScript.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java
index d24c01add312..656487f585b6 100644
--- a/graphics/java/android/renderscript/RenderScript.java
+++ b/graphics/java/android/renderscript/RenderScript.java
@@ -86,11 +86,7 @@ public class RenderScript {
native void nContextInitToClient(int con);
native void nContextDeinitToClient(int con);
- /**
- * Name of the file that holds the object cache.
- */
- private static final String CACHE_PATH = "com.android.renderscript.cache";
- static String mCachePath;
+ static File mCacheDir;
/**
* Sets the directory to use as a persistent storage for the
@@ -105,9 +101,8 @@ public class RenderScript {
return;
}
- File f = new File(cacheDir, CACHE_PATH);
- mCachePath = f.getAbsolutePath();
- f.mkdirs();
+ // Defer creation of cache path to nScriptCCreate().
+ mCacheDir = cacheDir;
}
public enum ContextType {