summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-03-06 18:42:29 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-06 18:42:30 +0000
commit2d08eaf0341df5d22236baadbcc4341f0e2e7f5e (patch)
tree96789154ea6e71825059cb35a5cabd133647bd01 /graphics
parentfdbf68ff6c5e45da4971352775d614e6790cc991 (diff)
parent1526a458a30184609f19b05e7334da3cbde81dd1 (diff)
downloadframeworks_base-2d08eaf0341df5d22236baadbcc4341f0e2e7f5e.zip
frameworks_base-2d08eaf0341df5d22236baadbcc4341f0e2e7f5e.tar.gz
frameworks_base-2d08eaf0341df5d22236baadbcc4341f0e2e7f5e.tar.bz2
Merge "Revert "Revert "Remove references to SkPorterDuff as it is deprecated."""
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/PorterDuff.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/java/android/graphics/PorterDuff.java b/graphics/java/android/graphics/PorterDuff.java
index 2ef1662..f5fbe70 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 SkPorterDuff.h
+ // these value must match their native equivalents. See SkXfermode.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 (12),
+ DARKEN (16),
/** [Sa + Da - Sa*Da,
Sc*(1 - Da) + Dc*(1 - Sa) + max(Sc, Dc)] */
- LIGHTEN (13),
+ LIGHTEN (17),
/** [Sa * Da, Sc * Dc] */
- MULTIPLY (14),
+ MULTIPLY (24),
/** [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc] */
- SCREEN (15),
+ SCREEN (14),
/** Saturate(S + D) */
- ADD (16),
- OVERLAY (17);
+ ADD (12),
+ OVERLAY (15);
Mode(int nativeInt) {
this.nativeInt = nativeInt;