Merge "No longer call registerNativeAllocation" am: 0272e96327
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1621426 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I84dd87405e09cbdf32a8fa0898a7c68069802958
This commit is contained in:
@@ -1363,13 +1363,6 @@ public class RenderScript {
|
|||||||
mApplicationContext = ctx.getApplicationContext();
|
mApplicationContext = ctx.getApplicationContext();
|
||||||
}
|
}
|
||||||
mRWLock = new ReentrantReadWriteLock();
|
mRWLock = new ReentrantReadWriteLock();
|
||||||
try {
|
|
||||||
registerNativeAllocation.invoke(sRuntime, 4 * 1024 * 1024); // 4MB for GC sake
|
|
||||||
} catch (Exception e) {
|
|
||||||
Log.e(RenderScript.LOG_TAG, "Couldn't invoke registerNativeAllocation:" + e);
|
|
||||||
throw new RSRuntimeException("Couldn't invoke registerNativeAllocation:" + e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user