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

Commit 40b2d0d0 authored by John Reck's avatar John Reck
Browse files

Add a recycle & gc after heavy scaling tests

Unclear if this will help, but it won't hurt at least

Bug: 317869473
Test: speculative
Change-Id: Ib523d676ad0c69119e782ed7fb6116107e1a3b91
parent a35c8f83
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -122,6 +122,8 @@ public class CanvasPerfTest {
            Bitmap.createScaledBitmap(source, source.getWidth() / 2, source.getHeight() / 2, true)
                    .recycle();
        }
        source.recycle();
        Runtime.getRuntime().gc();
    }

    @Test
@@ -141,6 +143,8 @@ public class CanvasPerfTest {
            Bitmap.createScaledBitmap(source, source.getWidth() / 2, source.getHeight() / 2, true)
                    .recycle();
        }
        source.recycle();
        Runtime.getRuntime().gc();
    }

    @Test
@@ -158,5 +162,7 @@ public class CanvasPerfTest {
            Bitmap.createScaledBitmap(source, source.getWidth() / 2, source.getHeight() / 2, true)
                    .recycle();
        }
        source.recycle();
        Runtime.getRuntime().gc();
    }
}