summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-07-13 01:27:54 (GMT)
committernicolasroard <nicolasroard@google.com>2013-07-17 00:07:33 (GMT)
commitcf76723e40171afef891d494d4c537200597acbb (patch)
treeb3616236e5d754bddda7f113c183e2f50ba46185 /src_pd
parent6d13e422b2ca68dce029c96e3b8789bae990a88c (diff)
downloadandroid_packages_apps_Snap-cf76723e40171afef891d494d4c537200597acbb.zip
android_packages_apps_Snap-cf76723e40171afef891d494d4c537200597acbb.tar.gz
android_packages_apps_Snap-cf76723e40171afef891d494d4c537200597acbb.tar.bz2
Add background processing service
bug:7298624 Change-Id: Ie79f88fd84fdf8f4dab6a8071f06a819e247b357
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java33
1 files changed, 17 insertions, 16 deletions
diff --git a/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java b/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java
index c5a6435..d4035cd 100644
--- a/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java
+++ b/src_pd/com/android/gallery3d/filtershow/filters/FiltersManager.java
@@ -22,9 +22,6 @@ import android.graphics.Color;
import com.android.gallery3d.R;
-import java.util.HashMap;
-import java.util.Vector;
-
public class FiltersManager extends BaseFiltersManager {
private static FiltersManager sInstance = null;
private static FiltersManager sPreviewInstance = null;
@@ -49,7 +46,7 @@ public class FiltersManager extends BaseFiltersManager {
}
@Override
- public void addBorders(Context context, Vector<FilterRepresentation> representations) {
+ public void addBorders(Context context) {
// Do not localize
String[] serializationNames = {
@@ -66,55 +63,59 @@ public class FiltersManager extends BaseFiltersManager {
"FRAME_CREAM_ROUNDED"
};
+ // The "no border" implementation
int i = 0;
+ FilterRepresentation rep = new FilterImageBorderRepresentation(0);
+ mBorders.add(rep);
+
// Regular borders
- FilterRepresentation rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_4x5);
+ rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_4x5);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_brush);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_grunge);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_sumi_e);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
rep = new FilterImageBorderRepresentation(R.drawable.filtershow_border_tape);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
rep = new FilterColorBorderRepresentation(Color.BLACK, mImageBorderSize, 0);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
rep = new FilterColorBorderRepresentation(Color.BLACK, mImageBorderSize,
mImageBorderSize);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
rep = new FilterColorBorderRepresentation(Color.WHITE, mImageBorderSize, 0);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
rep = new FilterColorBorderRepresentation(Color.WHITE, mImageBorderSize,
mImageBorderSize);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
int creamColor = Color.argb(255, 237, 237, 227);
rep = new FilterColorBorderRepresentation(creamColor, mImageBorderSize, 0);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
rep = new FilterColorBorderRepresentation(creamColor, mImageBorderSize,
mImageBorderSize);
rep.setSerializationName(serializationNames[i++]);
- representations.add(rep);
+ mBorders.add(rep);
}
public static FiltersManager getHighresManager() {