aboutsummaryrefslogtreecommitdiffstats
path: root/include/effects
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-04-02 15:42:41 -0700
committerRomain Guy <romainguy@android.com>2010-04-02 15:42:41 -0700
commit3eb034e4ebd52e7af65dc68505f56793a9d9e5ce (patch)
treedac1ac4a38299a90cc00307de3fa2f554ea5f13f /include/effects
parent15b24eaf335059bc4162c00c6e75cda63f5510d1 (diff)
downloadexternal_skia-3eb034e4ebd52e7af65dc68505f56793a9d9e5ce.zip
external_skia-3eb034e4ebd52e7af65dc68505f56793a9d9e5ce.tar.gz
external_skia-3eb034e4ebd52e7af65dc68505f56793a9d9e5ce.tar.bz2
Add support for overlay in the outdated SkPorterDuff class.
This is required to implement the prototype of the new fat title bars. Change-Id: Iff5a55c78167209d1647c4b8dd204b005a93399d
Diffstat (limited to 'include/effects')
-rw-r--r--include/effects/SkPorterDuff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/effects/SkPorterDuff.h b/include/effects/SkPorterDuff.h
index 6f4ac20..df1c07e 100644
--- a/include/effects/SkPorterDuff.h
+++ b/include/effects/SkPorterDuff.h
@@ -52,6 +52,7 @@ public:
kMultiply_Mode, //!< [Sa * Da, Sc * Dc]
kScreen_Mode, //!< [Sa + Da - Sa * Da, Sc + Dc - Sc * Dc]
kAdd_Mode, //!< Saturate(S + D)
+ kOverlay_Mode, //!< [Sa * Da, (Dc < 0.5 ? Sc * Dc : 1 - (1 - Dc) * (1 - Sc))]
kModeCount
};