diff options
author | Alex Sakhartchouk <alexst@google.com> | 2010-10-27 14:10:07 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2010-10-27 14:10:07 -0700 |
commit | 581cc64028e8b8f66cec8105bf530b16d5fb34eb (patch) | |
tree | 82d5b43ecb850ffa7b0dede58c86032fcc066d54 /graphics/java/android/renderscript/FileA3D.java | |
parent | 0424d69d484dfc25c73f6557199cfbb7aaaeb043 (diff) | |
download | frameworks_base-581cc64028e8b8f66cec8105bf530b16d5fb34eb.zip frameworks_base-581cc64028e8b8f66cec8105bf530b16d5fb34eb.tar.gz frameworks_base-581cc64028e8b8f66cec8105bf530b16d5fb34eb.tar.bz2 |
Adding nvidia extension for limited npot support.
Updating a3d loading to be async.
Change-Id: I4be71d2002b9ad6ab8896d63e625f031e6b7ea6c
Diffstat (limited to 'graphics/java/android/renderscript/FileA3D.java')
-rw-r--r-- | graphics/java/android/renderscript/FileA3D.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/graphics/java/android/renderscript/FileA3D.java b/graphics/java/android/renderscript/FileA3D.java index 7548878..fc74fc4 100644 --- a/graphics/java/android/renderscript/FileA3D.java +++ b/graphics/java/android/renderscript/FileA3D.java @@ -141,9 +141,11 @@ public class FileA3D extends BaseObj { } IndexEntry[] mFileEntries; + InputStream mInputStream; - FileA3D(int id, RenderScript rs) { + FileA3D(int id, RenderScript rs, InputStream stream) { super(id, rs); + mInputStream = stream; } private void initEntries() { @@ -193,20 +195,12 @@ public class FileA3D extends BaseObj { if(fileId == 0) { throw new IllegalStateException("Load failed."); } - FileA3D fa3d = new FileA3D(fileId, rs); + FileA3D fa3d = new FileA3D(fileId, rs, is); fa3d.initEntries(); return fa3d; } catch (Exception e) { // Ignore - } finally { - if (is != null) { - try { - is.close(); - } catch (IOException e) { - // Ignore - } - } } return null; |