diff options
author | Chris Craik <ccraik@google.com> | 2015-03-06 18:15:39 +0000 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2015-03-06 18:15:39 +0000 |
commit | 26b4f598c8b1e99b43261614a6861785638c8c00 (patch) | |
tree | bc6e64c7dc08fcbda6e1d65c7423d003426f6d6c /graphics | |
parent | a9aded1f6253afbea7906509992a8a3721f731ab (diff) | |
download | frameworks_base-26b4f598c8b1e99b43261614a6861785638c8c00.zip frameworks_base-26b4f598c8b1e99b43261614a6861785638c8c00.tar.gz frameworks_base-26b4f598c8b1e99b43261614a6861785638c8c00.tar.bz2 |
Revert "Remove references to SkPorterDuff as it is deprecated."
bug:19627342
This reverts commit a9aded1f6253afbea7906509992a8a3721f731ab.
Change-Id: Ic865edfbd31c9e24d18a1397a1d346633376e20a
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/PorterDuff.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/java/android/graphics/PorterDuff.java b/graphics/java/android/graphics/PorterDuff.java index f5fbe70..2ef1662 100644 --- a/graphics/java/android/graphics/PorterDuff.java +++ b/graphics/java/android/graphics/PorterDuff.java @@ -18,7 +18,7 @@ package android.graphics; public class PorterDuff { - // these value must match their native equivalents. See SkXfermode.h + // these value must match their native equivalents. See SkPorterDuff.h public enum Mode { /** [0, 0] */ CLEAR (0), @@ -46,17 +46,17 @@ public class PorterDuff { XOR (11), /** [Sa + Da - Sa*Da, Sc*(1 - Da) + Dc*(1 - Sa) + min(Sc, Dc)] */ - DARKEN (16), + DARKEN (12), /** [Sa + Da - Sa*Da, Sc*(1 - Da) + Dc*(1 - Sa) + max(Sc, Dc)] */ - LIGHTEN (17), + LIGHTEN (13), /** [Sa * Da, Sc * Dc] */ - MULTIPLY (24), + MULTIPLY (14), /** [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] */ - SCREEN (14), + SCREEN (15), /** Saturate(S + D) */ - ADD (12), - OVERLAY (15); + ADD (16), + OVERLAY (17); Mode(int nativeInt) { this.nativeInt = nativeInt; |