eaa7797990
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
124 lines
6.2 KiB
Python
124 lines
6.2 KiB
Python
# Include this gypi to include all 'effects' files
|
|
# The parent gyp/gypi file must define:
|
|
# 'skia_src_path' e.g. skia/trunk/src
|
|
# 'skia_include_path' e.g. skia/trunk/include
|
|
#
|
|
# The skia build defines these in common_variables.gypi.
|
|
#
|
|
{
|
|
'sources': [
|
|
'<(skia_src_path)/effects/Sk1DPathEffect.cpp',
|
|
'<(skia_src_path)/effects/Sk2DPathEffect.cpp',
|
|
'<(skia_src_path)/effects/SkArithmeticMode.cpp',
|
|
'<(skia_src_path)/effects/SkAvoidXfermode.cpp',
|
|
'<(skia_src_path)/effects/SkBicubicImageFilter.cpp',
|
|
'<(skia_src_path)/effects/SkBitmapSource.cpp',
|
|
'<(skia_src_path)/effects/SkBlurDrawLooper.cpp',
|
|
'<(skia_src_path)/effects/SkBlurMask.cpp',
|
|
'<(skia_src_path)/effects/SkBlurMask.h',
|
|
'<(skia_src_path)/effects/SkBlurImageFilter.cpp',
|
|
'<(skia_src_path)/effects/SkBlurMaskFilter.cpp',
|
|
'<(skia_src_path)/effects/SkColorFilters.cpp',
|
|
'<(skia_src_path)/effects/SkColorFilterImageFilter.cpp',
|
|
'<(skia_src_path)/effects/SkColorMatrix.cpp',
|
|
'<(skia_src_path)/effects/SkColorMatrixFilter.cpp',
|
|
'<(skia_src_path)/effects/SkComposeImageFilter.cpp',
|
|
'<(skia_src_path)/effects/SkCornerPathEffect.cpp',
|
|
'<(skia_src_path)/effects/SkDashPathEffect.cpp',
|
|
'<(skia_src_path)/effects/SkDiscretePathEffect.cpp',
|
|
'<(skia_src_path)/effects/SkDisplacementMapEffect.cpp',
|
|
'<(skia_src_path)/effects/SkDropShadowImageFilter.cpp',
|
|
'<(skia_src_path)/effects/SkEmbossMask.cpp',
|
|
'<(skia_src_path)/effects/SkEmbossMask.h',
|
|
'<(skia_src_path)/effects/SkEmbossMask_Table.h',
|
|
'<(skia_src_path)/effects/SkEmbossMaskFilter.cpp',
|
|
'<(skia_src_path)/effects/SkGpuBlurUtils.h',
|
|
'<(skia_src_path)/effects/SkGpuBlurUtils.cpp',
|
|
'<(skia_src_path)/effects/SkKernel33MaskFilter.cpp',
|
|
'<(skia_src_path)/effects/SkLayerDrawLooper.cpp',
|
|
'<(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',
|
|
'<(skia_src_path)/effects/SkMorphologyImageFilter.cpp',
|
|
'<(skia_src_path)/effects/SkOffsetImageFilter.cpp',
|
|
'<(skia_src_path)/effects/SkPaintFlagsDrawFilter.cpp',
|
|
'<(skia_src_path)/effects/SkPerlinNoiseShader.cpp',
|
|
'<(skia_src_path)/effects/SkPixelXorXfermode.cpp',
|
|
'<(skia_src_path)/effects/SkPorterDuff.cpp',
|
|
'<(skia_src_path)/effects/SkRectShaderImageFilter.cpp',
|
|
'<(skia_src_path)/effects/SkStippleMaskFilter.cpp',
|
|
'<(skia_src_path)/effects/SkTableColorFilter.cpp',
|
|
'<(skia_src_path)/effects/SkTableMaskFilter.cpp',
|
|
'<(skia_src_path)/effects/SkTestImageFilters.cpp',
|
|
'<(skia_src_path)/effects/SkTransparentShader.cpp',
|
|
'<(skia_src_path)/effects/SkXfermodeImageFilter.cpp',
|
|
|
|
'<(skia_src_path)/effects/gradients/SkBitmapCache.cpp',
|
|
'<(skia_src_path)/effects/gradients/SkBitmapCache.h',
|
|
'<(skia_src_path)/effects/gradients/SkClampRange.cpp',
|
|
'<(skia_src_path)/effects/gradients/SkClampRange.h',
|
|
'<(skia_src_path)/effects/gradients/SkRadialGradient_Table.h',
|
|
'<(skia_src_path)/effects/gradients/SkGradientShader.cpp',
|
|
'<(skia_src_path)/effects/gradients/SkGradientShaderPriv.h',
|
|
'<(skia_src_path)/effects/gradients/SkLinearGradient.cpp',
|
|
'<(skia_src_path)/effects/gradients/SkLinearGradient.h',
|
|
'<(skia_src_path)/effects/gradients/SkRadialGradient.cpp',
|
|
'<(skia_src_path)/effects/gradients/SkRadialGradient.h',
|
|
'<(skia_src_path)/effects/gradients/SkTwoPointRadialGradient.cpp',
|
|
'<(skia_src_path)/effects/gradients/SkTwoPointRadialGradient.h',
|
|
'<(skia_src_path)/effects/gradients/SkTwoPointConicalGradient.cpp',
|
|
'<(skia_src_path)/effects/gradients/SkTwoPointConicalGradient.h',
|
|
'<(skia_src_path)/effects/gradients/SkSweepGradient.cpp',
|
|
'<(skia_src_path)/effects/gradients/SkSweepGradient.h',
|
|
|
|
'<(skia_include_path)/effects/Sk1DPathEffect.h',
|
|
'<(skia_include_path)/effects/Sk2DPathEffect.h',
|
|
'<(skia_include_path)/effects/SkXfermodeImageFilter.h',
|
|
'<(skia_include_path)/effects/SkArithmeticMode.h',
|
|
'<(skia_include_path)/effects/SkAvoidXfermode.h',
|
|
'<(skia_include_path)/effects/SkBitmapSource.h',
|
|
'<(skia_include_path)/effects/SkBlurDrawLooper.h',
|
|
'<(skia_include_path)/effects/SkBlurImageFilter.h',
|
|
'<(skia_include_path)/effects/SkBlurMaskFilter.h',
|
|
'<(skia_include_path)/effects/SkColorMatrix.h',
|
|
'<(skia_include_path)/effects/SkColorMatrixFilter.h',
|
|
'<(skia_include_path)/effects/SkColorFilterImageFilter.h',
|
|
'<(skia_include_path)/effects/SkCornerPathEffect.h',
|
|
'<(skia_include_path)/effects/SkDashPathEffect.h',
|
|
'<(skia_include_path)/effects/SkDiscretePathEffect.h',
|
|
'<(skia_include_path)/effects/SkDisplacementMapEffect.h',
|
|
'<(skia_include_path)/effects/SkDrawExtraPathEffect.h',
|
|
'<(skia_include_path)/effects/SkDropShadowImageFilter.h',
|
|
'<(skia_include_path)/effects/SkEmbossMaskFilter.h',
|
|
'<(skia_include_path)/effects/SkGradientShader.h',
|
|
'<(skia_include_path)/effects/SkKernel33MaskFilter.h',
|
|
'<(skia_include_path)/effects/SkLayerDrawLooper.h',
|
|
'<(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',
|
|
'<(skia_include_path)/effects/SkPerlinNoiseShader.h',
|
|
'<(skia_include_path)/effects/SkPixelXorXfermode.h',
|
|
'<(skia_include_path)/effects/SkPorterDuff.h',
|
|
'<(skia_include_path)/effects/SkRectShaderImageFilter.h',
|
|
'<(skia_include_path)/effects/SkStippleMaskFilter.h',
|
|
'<(skia_include_path)/effects/SkTableColorFilter.h',
|
|
'<(skia_include_path)/effects/SkTableMaskFilter.h',
|
|
'<(skia_include_path)/effects/SkTransparentShader.h',
|
|
'<(skia_include_path)/effects/SkMagnifierImageFilter.h',
|
|
],
|
|
}
|
|
|
|
# Local Variables:
|
|
# tab-width:2
|
|
# indent-tabs-mode:nil
|
|
# End:
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|