Merge "make Allocation.destroy() include setSurface(null) for USAGE_IO_OUTPUT (Native RS)"
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user