Loading rs/java/android/renderscript/Allocation.java +11 −0 Original line number Diff line number Diff line Loading @@ -1878,4 +1878,15 @@ public class Allocation extends BaseObj { } } /** * For USAGE_IO_OUTPUT, destroy() implies setSurface(null). * */ @Override public void destroy() { if((mUsage & USAGE_IO_OUTPUT) != 0) { setSurface(null); } super.destroy(); } } Loading
rs/java/android/renderscript/Allocation.java +11 −0 Original line number Diff line number Diff line Loading @@ -1878,4 +1878,15 @@ public class Allocation extends BaseObj { } } /** * For USAGE_IO_OUTPUT, destroy() implies setSurface(null). * */ @Override public void destroy() { if((mUsage & USAGE_IO_OUTPUT) != 0) { setSurface(null); } super.destroy(); } }