Beispiel #1
0
 private void tearDownPipeline() {
   ImageFilter.resetStatics();
   FiltersManager.getPreviewManager().freeRSFilterScripts();
   FiltersManager.getManager().freeRSFilterScripts();
   FiltersManager.getHighresManager().freeRSFilterScripts();
   FiltersManager.reset();
   CachingPipeline.destroyRenderScriptContext();
 }
Beispiel #2
0
  private void setupPipeline() {
    Resources res = getResources();
    FiltersManager.setResources(res);
    CachingPipeline.createRenderscriptContext(this);

    FiltersManager filtersManager = FiltersManager.getManager();
    filtersManager.addLooks(this);
    filtersManager.addBorders(this);
    filtersManager.addTools(this);
    filtersManager.addEffects();

    FiltersManager highresFiltersManager = FiltersManager.getHighresManager();
    highresFiltersManager.addLooks(this);
    highresFiltersManager.addBorders(this);
    highresFiltersManager.addTools(this);
    highresFiltersManager.addEffects();
  }