Merge "Force destroy scripts in imageProcessing." into jb-mr1-dev
This commit is contained in:
@@ -133,6 +133,9 @@ public class ImageProcessingActivity extends Activity
|
|||||||
|
|
||||||
|
|
||||||
void changeTest(int testID) {
|
void changeTest(int testID) {
|
||||||
|
if (mTest != null) {
|
||||||
|
mTest.destroy();
|
||||||
|
}
|
||||||
switch(testID) {
|
switch(testID) {
|
||||||
case 0:
|
case 0:
|
||||||
mTest = new LevelsV4(false, false);
|
mTest = new LevelsV4(false, false);
|
||||||
|
|||||||
@@ -108,6 +108,10 @@ public class TestBase {
|
|||||||
mRS.finish();
|
mRS.finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void destroy() {
|
||||||
|
mRS.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
public void updateBitmap(Bitmap b) {
|
public void updateBitmap(Bitmap b) {
|
||||||
mOutPixelsAllocation.copyTo(b);
|
mOutPixelsAllocation.copyTo(b);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user