summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/editors/EditorChanSat.java
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-08-05 15:07:14 -0700
committerJohn Hoford <hoford@google.com>2013-08-09 17:21:22 -0700
commitf4b659334750a5aa75f929d18857a2ab93c9d939 (patch)
treefe4a4e7827129a79e694282a1506b9979ef1c712 /src/com/android/gallery3d/filtershow/editors/EditorChanSat.java
parent8c3d2b9ab605cb8e5e883932147b8a378748ef32 (diff)
downloadandroid_packages_apps_Gallery2-f4b659334750a5aa75f929d18857a2ab93c9d939.tar.gz
android_packages_apps_Gallery2-f4b659334750a5aa75f929d18857a2ab93c9d939.tar.bz2
android_packages_apps_Gallery2-f4b659334750a5aa75f929d18857a2ab93c9d939.zip
fix draw
Change-Id: I535221edd992c1a8c659c398dba61158e0c1d87d
Diffstat (limited to 'src/com/android/gallery3d/filtershow/editors/EditorChanSat.java')
-rw-r--r--src/com/android/gallery3d/filtershow/editors/EditorChanSat.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/editors/EditorChanSat.java b/src/com/android/gallery3d/filtershow/editors/EditorChanSat.java
index 7e31f09ae..95a30e7fa 100644
--- a/src/com/android/gallery3d/filtershow/editors/EditorChanSat.java
+++ b/src/com/android/gallery3d/filtershow/editors/EditorChanSat.java
@@ -27,6 +27,7 @@ import android.widget.SeekBar.OnSeekBarChangeListener;
import com.android.gallery3d.R;
import com.android.gallery3d.filtershow.controller.BasicParameterStyle;
+import com.android.gallery3d.filtershow.controller.BitmapCaller;
import com.android.gallery3d.filtershow.controller.FilterView;
import com.android.gallery3d.filtershow.controller.Parameter;
import com.android.gallery3d.filtershow.filters.FilterChanSatRepresentation;
@@ -158,15 +159,14 @@ public class EditorChanSat extends ParametricEditor implements OnSeekBarChangeLi
}
@Override
- public void computeIcon(int n, RenderingRequestCaller caller) {
+ public void computeIcon(int n, BitmapCaller caller) {
FilterChanSatRepresentation rep = getChanSatRep();
if (rep == null) return;
rep = (FilterChanSatRepresentation) rep.copy();
ImagePreset preset = new ImagePreset();
preset.addFilter(rep);
Bitmap src = MasterImage.getImage().getThumbnailBitmap();
- RenderingRequest.post(null, src, preset, RenderingRequest.STYLE_ICON_RENDERING,
- caller);
+ caller.available(src);
}
protected void selectMenuItem(MenuItem item) {