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

Commit 2fcd4ed4 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Add a recycle & gc after heavy scaling tests" into main

parents 3c7133f5 40b2d0d0
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();
    }
}