public static synchronized void createRenderscriptContext(Context context) {
   if (sRS != null) {
     Log.w(LOGTAG, "A prior RS context exists when calling setRenderScriptContext");
     destroyRenderScriptContext();
   }
   sRS = RenderScript.create(context);
 }
Beispiel #2
0
 private void tearDownPipeline() {
   ImageFilter.resetStatics();
   FiltersManager.getPreviewManager().freeRSFilterScripts();
   FiltersManager.getManager().freeRSFilterScripts();
   FiltersManager.getHighresManager().freeRSFilterScripts();
   FiltersManager.reset();
   CachingPipeline.destroyRenderScriptContext();
 }