diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-02 19:32:15 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-02 19:32:15 +0000 |
commit | 51a11b7f2f7c0021022004d0d4b0924a590990f9 (patch) | |
tree | eb6bda324b959a393006d23924e4d8aadf9e3147 /include | |
parent | dc5cd8552e787ac9563e664524332037327ba6d4 (diff) |
Arithmetic mode now has the option of not validating the output color, which will allow multiple arithmetic operations to be done sequentially, without intermediate clamping. This is required for mimicking blink's current behavior.
BUG=skia:
R=senorblanco@google.com, senorblanco@chromium.org, reed@google.com, bsalomon@google.com
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/204543006
git-svn-id: http://skia.googlecode.com/svn/trunk@14031 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/effects/SkArithmeticMode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/effects/SkArithmeticMode.h b/include/effects/SkArithmeticMode.h index 46b7121bb4..3b9585d9ba 100644 --- a/include/effects/SkArithmeticMode.h +++ b/include/effects/SkArithmeticMode.h @@ -26,7 +26,8 @@ public: * k1=k2=k4=0, k3=1.0 results in returning the dst */ static SkXfermode* Create(SkScalar k1, SkScalar k2, - SkScalar k3, SkScalar k4); + SkScalar k3, SkScalar k4, + bool enforcePMColor = true); SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP(); |