Allocation API update.
Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
This commit is contained in:
@@ -119,7 +119,11 @@ public class Script extends BaseObj {
|
||||
protected Allocation mAllocation;
|
||||
|
||||
protected void init(RenderScript rs, int dimx) {
|
||||
mAllocation = Allocation.createSized(rs, mElement, dimx);
|
||||
mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT);
|
||||
}
|
||||
|
||||
protected void init(RenderScript rs, int dimx, int usages) {
|
||||
mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT | usages);
|
||||
}
|
||||
|
||||
protected FieldBase() {
|
||||
|
||||
Reference in New Issue
Block a user