summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/saturation.rs
diff options
context:
space:
mode:
authorJean-Luc Brouillet <jeanluc@google.com>2015-05-28 01:51:04 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-05-28 01:51:04 +0000
commit13d35e38657b0acec499a98d68410258ead18db0 (patch)
tree547117f668ea31f8424844206e27f34c81ed9547 /src/com/android/gallery3d/filtershow/filters/saturation.rs
parentede5978776c754f221462d8f76e4d445befbdc16 (diff)
parenta6adf1339543812fef50fd32ea4a1592c1cc55e0 (diff)
downloadandroid_packages_apps_Gallery2-13d35e38657b0acec499a98d68410258ead18db0.tar.gz
android_packages_apps_Gallery2-13d35e38657b0acec499a98d68410258ead18db0.tar.bz2
android_packages_apps_Gallery2-13d35e38657b0acec499a98d68410258ead18db0.zip
am a6adf133: Fix RenderScript warnings.
* commit 'a6adf1339543812fef50fd32ea4a1592c1cc55e0': Fix RenderScript warnings.
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/saturation.rs')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/saturation.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/saturation.rs b/src/com/android/gallery3d/filtershow/filters/saturation.rs
index 5210e34a3..5b216406d 100644
--- a/src/com/android/gallery3d/filtershow/filters/saturation.rs
+++ b/src/com/android/gallery3d/filtershow/filters/saturation.rs
@@ -149,7 +149,6 @@ uchar4 __attribute__((kernel)) selectiveAdjust(const uchar4 in, uint32_t x,
uint32_t y) {
float4 pixel = rsUnpackColor8888(in);
- float4 wsum = pixel;
int hue = rgb2hue(in);
float t = satLut[hue];
@@ -158,4 +157,4 @@ uchar4 __attribute__((kernel)) selectiveAdjust(const uchar4 in, uint32_t x,
pixel.a = 1.0f;
return rsPackColorTo8888(clamp(pixel, 0.f, 1.0f));
-} \ No newline at end of file
+}