diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-23 13:13:12 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-23 13:13:12 +0000 |
commit | eaa77979908d1b9fff00b73d02c4576901448933 (patch) | |
tree | ebd7aacc3b4f02ac7935573deb8c20a260d00302 /gyp | |
parent | 44a77c8158016996f79eb0ac98bb85996174bb89 (diff) |
Add luminance mask transfer modes.
This adds kSrcInLum_Mode and kDstInLum_Mode, to support CSS and SVG luminance masks (http://www.w3.org/TR/css-masking/#MaskValues , http://www.w3.org/TR/SVG/masking.html#Masking ).
The transfer coefficient is computed according to http://www.w3.org/TR/2011/REC-SVG11-20110816/filters.html#feColorMatrixElement "luminance-to-alpha":
luma = 0.2125 * r + 0.7154 * g + 0.0721 * b
R=bsalomon@google.com, reed@google.com, robertphillips@google.com, vandebo@chromium.org
Author: fmalita@chromium.org
Review URL: https://chromiumcodereview.appspot.com/22918012
git-svn-id: http://skia.googlecode.com/svn/trunk@10887 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/effects.gypi | 2 | ||||
-rw-r--r-- | gyp/gmslides.gypi | 1 | ||||
-rw-r--r-- | gyp/public_headers.gypi | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/gyp/effects.gypi b/gyp/effects.gypi index 84d38acf2d..56ba59f09b 100644 --- a/gyp/effects.gypi +++ b/gyp/effects.gypi @@ -39,6 +39,7 @@ '<(skia_src_path)/effects/SkLayerRasterizer.cpp', '<(skia_src_path)/effects/SkLerpXfermode.cpp', '<(skia_src_path)/effects/SkLightingImageFilter.cpp', + '<(skia_src_path)/effects/SkLumaXfermode.cpp', '<(skia_src_path)/effects/SkMagnifierImageFilter.cpp', '<(skia_src_path)/effects/SkMatrixConvolutionImageFilter.cpp', '<(skia_src_path)/effects/SkMergeImageFilter.cpp', @@ -99,6 +100,7 @@ '<(skia_include_path)/effects/SkLayerRasterizer.h', '<(skia_include_path)/effects/SkLerpXfermode.h', '<(skia_include_path)/effects/SkLightingImageFilter.h', + '<(skia_include_path)/effects/SkLumaXfermode.h', '<(skia_include_path)/effects/SkOffsetImageFilter.h', '<(skia_include_path)/effects/SkMorphologyImageFilter.h', '<(skia_include_path)/effects/SkPaintFlagsDrawFilter.h', diff --git a/gyp/gmslides.gypi b/gyp/gmslides.gypi index 76b6739d99..b2afc5ef12 100644 --- a/gyp/gmslides.gypi +++ b/gyp/gmslides.gypi @@ -68,6 +68,7 @@ '../gm/inversepaths.cpp', '../gm/lerpmode.cpp', '../gm/lighting.cpp', + '../gm/lumamode.cpp', '../gm/image.cpp', '../gm/imagefiltersbase.cpp', '../gm/imagefilterscropped.cpp', diff --git a/gyp/public_headers.gypi b/gyp/public_headers.gypi index 10f30e530b..472fe29147 100644 --- a/gyp/public_headers.gypi +++ b/gyp/public_headers.gypi @@ -78,6 +78,7 @@ 'effects/SkMergeImageFilter.h', 'effects/SkPerlinNoiseShader.h', 'effects/SkLerpXfermode.h', + 'effects/SkLumaXfermode.h', 'effects/SkRectShaderImageFilter.h', 'effects/SkMagnifierImageFilter.h', 'effects/SkBicubicImageFilter.h', |