Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment