Ejemplo n.º 1
0
 @Override
 public void onCreate() {
   mProcessingTaskController = new ProcessingTaskController(this);
   mImageSavingTask = new ImageSavingTask(this);
   mUpdatePreviewTask = new UpdatePreviewTask();
   mHighresRenderingRequestTask = new HighresRenderingRequestTask();
   mFullresRenderingRequestTask = new FullresRenderingRequestTask();
   mRenderingRequestTask = new RenderingRequestTask();
   mProcessingTaskController.add(mImageSavingTask);
   mProcessingTaskController.add(mUpdatePreviewTask);
   mProcessingTaskController.add(mHighresRenderingRequestTask);
   mProcessingTaskController.add(mFullresRenderingRequestTask);
   mProcessingTaskController.add(mRenderingRequestTask);
   setupPipeline();
 }
Ejemplo n.º 2
0
 @Override
 public void onDestroy() {
   tearDownPipeline();
   mProcessingTaskController.quit();
 }