diff options
Diffstat (limited to 'src/com/android/gallery3d/filtershow/pipeline/CacheProcessing.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/pipeline/CacheProcessing.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/pipeline/CacheProcessing.java b/src/com/android/gallery3d/filtershow/pipeline/CacheProcessing.java index 10b6c4923..e0269e9bb 100644 --- a/src/com/android/gallery3d/filtershow/pipeline/CacheProcessing.java +++ b/src/com/android/gallery3d/filtershow/pipeline/CacheProcessing.java @@ -90,7 +90,9 @@ public class CacheProcessing { cacheBitmap = originalBitmap.copy(Bitmap.Config.ARGB_8888, true); if (findBaseImageIndex > -1) { FilterRepresentation representation = filters.elementAt(findBaseImageIndex); - cacheBitmap = environment.applyRepresentation(representation, cacheBitmap); + if (representation.getFilterType() != FilterRepresentation.TYPE_GEOMETRY) { + cacheBitmap = environment.applyRepresentation(representation, cacheBitmap); + } mSteps.elementAt(findBaseImageIndex).representation = representation.copy(); mSteps.elementAt(findBaseImageIndex).cache = cacheBitmap; } @@ -115,7 +117,9 @@ public class CacheProcessing { } for (int i = findBaseImageIndex; i <= similarUpToIndex; i++) { FilterRepresentation representation = filters.elementAt(i); - cacheBitmap = environment.applyRepresentation(representation, cacheBitmap); + if (representation.getFilterType() != FilterRepresentation.TYPE_GEOMETRY) { + cacheBitmap = environment.applyRepresentation(representation, cacheBitmap); + } if (DEBUG) { Log.v(LOGTAG, " - " + i + " => apply " + representation.getName()); } @@ -134,7 +138,9 @@ public class CacheProcessing { FilterRepresentation representation = filters.elementAt(i); CacheStep currentStep = mSteps.elementAt(i); cacheBitmap = cacheBitmap.copy(Bitmap.Config.ARGB_8888, true); - cacheBitmap = environment.applyRepresentation(representation, cacheBitmap); + if (representation.getFilterType() != FilterRepresentation.TYPE_GEOMETRY) { + cacheBitmap = environment.applyRepresentation(representation, cacheBitmap); + } currentStep.representation = representation.copy(); currentStep.cache = cacheBitmap; if (DEBUG) { |