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

Commit 64380cef authored by Tim Murray's avatar Tim Murray Committed by Android (Google) Code Review
Browse files

Merge "add resize2D to Java API"

parents cd710511 bc254b95
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.");