summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/FilterShowActivity.java
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-07-19 14:45:32 -0700
committernicolasroard <nicolasroard@google.com>2013-07-19 15:48:58 -0700
commit58019558c7465a8dce8dfb49d68292a296c6b408 (patch)
tree437bcaf4d1b14a83c669bdd89a16ef211baf2430 /src/com/android/gallery3d/filtershow/FilterShowActivity.java
parentcf76723e40171afef891d494d4c537200597acbb (diff)
downloadandroid_packages_apps_Snap-58019558c7465a8dce8dfb49d68292a296c6b408.tar.gz
android_packages_apps_Snap-58019558c7465a8dce8dfb49d68292a296c6b408.tar.bz2
android_packages_apps_Snap-58019558c7465a8dce8dfb49d68292a296c6b408.zip
Remove FilteringPipeline
Reorganize things around the filtering service. - add HighresRenderingTask - add RenderingRequestTask - add UpdatePreviewTask Change-Id: I3da34fee8c624fb55311c3e1639857fc1bcdadad
Diffstat (limited to 'src/com/android/gallery3d/filtershow/FilterShowActivity.java')
-rw-r--r--src/com/android/gallery3d/filtershow/FilterShowActivity.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index 41d178411..9508bdc21 100644
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -59,7 +59,6 @@ import com.android.gallery3d.R;
import com.android.gallery3d.app.PhotoPage;
import com.android.gallery3d.data.LocalAlbum;
import com.android.gallery3d.filtershow.pipeline.CachingPipeline;
-import com.android.gallery3d.filtershow.pipeline.FilteringPipeline;
import com.android.gallery3d.filtershow.cache.ImageLoader;
import com.android.gallery3d.filtershow.category.Action;
import com.android.gallery3d.filtershow.category.CategoryAdapter;
@@ -546,6 +545,7 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
master.getOrientation(), bounds);
master.setOriginalBounds(bounds);
master.setOriginalBitmapHighres(originalHires);
+ mBoundService.setOriginalBitmapHighres(originalHires);
master.warnListeners();
}
return true;
@@ -555,10 +555,9 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
protected void onPostExecute(Boolean result) {
Bitmap highresBitmap = MasterImage.getImage().getOriginalBitmapHighres();
if (highresBitmap != null) {
- FilteringPipeline pipeline = FilteringPipeline.getPipeline();
float highResPreviewScale = (float) highresBitmap.getWidth()
/ (float) MasterImage.getImage().getOriginalBounds().width();
- pipeline.setHighResPreviewScaleFactor(highResPreviewScale);
+ mBoundService.setHighresPreviewScaleFactor(highResPreviewScale);
}
}
}
@@ -611,15 +610,14 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
imageShow.setVisibility(View.VISIBLE);
Bitmap largeBitmap = MasterImage.getImage().getOriginalBitmapLarge();
- FilteringPipeline pipeline = FilteringPipeline.getPipeline();
- pipeline.setOriginal(largeBitmap);
+ mBoundService.setOriginalBitmap(largeBitmap);
+
float previewScale = (float) largeBitmap.getWidth()
/ (float) MasterImage.getImage().getOriginalBounds().width();
- pipeline.setPreviewScaleFactor(previewScale);
+ mBoundService.setPreviewScaleFactor(previewScale);
if (!mShowingTinyPlanet) {
mCategoryFiltersAdapter.removeTinyPlanet();
}
- pipeline.turnOnPipeline(true);
MasterImage.getImage().setOriginalGeometry(largeBitmap);
mCategoryLooksAdapter.imageLoaded();
mCategoryBordersAdapter.imageLoaded();