Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc254b95 authored by Tim Murray's avatar Tim Murray
Browse files

add resize2D to Java API

Change-Id: I91c0d2292486d63b93f8b07a9ec0137fe020ac21
parent f3ca25ef
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -19228,6 +19228,7 @@ package android.renderscript {
    method public void ioReceive();
    method public void ioSend();
    method public synchronized void resize(int);
    method public synchronized void resize(int, int);
    method public void setFromFieldPacker(int, android.renderscript.FieldPacker);
    method public void setFromFieldPacker(int, int, android.renderscript.FieldPacker);
    method public void setSurface(android.view.Surface);
+1 −2
Original line number Diff line number Diff line
@@ -971,11 +971,10 @@ public class Allocation extends BaseObj {
     *
     * A new type will be created with the new dimension.
     *
     * @hide
     * @param dimX The new size of the allocation.
     * @param dimY The new size of the allocation.
     */
    public void resize(int dimX, int dimY) {
    public synchronized void resize(int dimX, int dimY) {
        if ((mType.getZ() > 0) || mType.hasFaces() || mType.hasMipmaps()) {
            throw new RSInvalidStateException(
                "Resize only support for 2D allocations at this time.");