skia2/src/effects
senorblanco@chromium.org 0682019f21 Bounds fixes for SkXfermodeImageFilter:
1) Change the default bounds to the union of the foreground and background bounds.
2) Use a canvas translate instead of manually offsetting the foreground and background bounds by the union.
3) Apply the transfer mode to all pixels, including those outside the foreground rect by using a difference clip.

Covered by the offset test cases in the xfermodeimagefilter GM (will need rebaselines).

R=reed@google.com

Review URL: https://codereview.chromium.org/112683004

git-svn-id: http://skia.googlecode.com/svn/trunk@12652 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-12-12 21:00:58 +00:00
..
gradients Revert "remvoe duplicate impl for SkImageInfo flattening" 2013-12-11 21:22:39 +00:00
Sk1DPathEffect.cpp add optional cull-rect to patheffects, so they can do less work if their results 2013-01-24 21:03:11 +00:00
Sk2DPathEffect.cpp add optional cull-rect to patheffects, so they can do less work if their results 2013-01-24 21:03:11 +00:00
SkArithmeticMode.cpp Always create an instance when testing GrEffects for SkXfermode and SkArithmeticMode 2013-10-24 13:33:32 +00:00
SkAvoidXfermode.cpp remove dst/rendertarget support for kARGB_4444_Config 2013-06-21 18:30:53 +00:00
SkBicubicImageFilter.cpp Adding more validation 2013-11-25 21:46:31 +00:00
SkBitmapAlphaThresholdShader.cpp Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
SkBitmapSource.cpp Implement srcRect and dstRect functionality in SkBitmapSource. This is required for the "preserveAspectRatio" options of SVG's feImage. Covered by new GM "bitmapsource". 2013-12-09 18:31:42 +00:00
SkBlurDrawLooper.cpp force readbuffer clients to use specialized readFoo for flattenables 2013-10-16 13:05:06 +00:00
SkBlurImageFilter.cpp Fixed bad bitmap size crashes 2013-12-04 17:06:49 +00:00
SkBlurMask.cpp remove SkFloatToScalar macro 2013-11-25 19:44:07 +00:00
SkBlurMask.h Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning"" 2013-10-31 17:28:30 +00:00
SkBlurMaskFilter.cpp Code cleanup following recapture of skps 2013-12-03 19:46:58 +00:00
SkColorFilterImageFilter.cpp Fixed bad bitmap size crashes 2013-12-04 17:06:49 +00:00
SkColorFilters.cpp Fixed a few places where uninitialized memory could have been read 2013-12-06 20:14:46 +00:00
SkColorMatrix.cpp remove SkFloatToScalar macro 2013-11-25 19:44:07 +00:00
SkColorMatrixFilter.cpp Fixed a few places where uninitialized memory could have been read 2013-12-06 20:14:46 +00:00
SkComposeImageFilter.cpp Adding more validation 2013-11-25 21:46:31 +00:00
SkCornerPathEffect.cpp bump picture version since SkPath has changed (conics) 2013-05-31 15:17:50 +00:00
SkDashPathEffect.cpp Adding size parameter to read array functions 2013-10-31 18:37:50 +00:00
SkDiscretePathEffect.cpp Change old PRG to be SkLCGRandom; change new one to SkRandom 2013-09-09 20:09:12 +00:00
SkDisplacementMapEffect.cpp Adding more validation 2013-11-25 21:46:31 +00:00
SkDropShadowImageFilter.cpp Fixed bad bitmap size crashes 2013-12-04 17:06:49 +00:00
SkEmbossMask_Table.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkEmbossMask.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkEmbossMask.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkEmbossMaskFilter.cpp Code cleanup following recapture of skps 2013-12-03 19:46:58 +00:00
SkGpuBlurUtils.cpp Make texture domain a helper so that it can be incorporated into other effects. 2013-12-09 17:03:02 +00:00
SkGpuBlurUtils.h This patch implements a crop rect for SkImageFilter. It has been implemented for SkColorFilterImageFilter and SkBlurImageFilter as examples. 2013-07-24 22:19:24 +00:00
SkKernel33MaskFilter.cpp Adding size parameter to read array functions 2013-10-31 18:37:50 +00:00
SkLayerDrawLooper.cpp Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
SkLayerRasterizer.cpp change all interfaces for SkRasterizer to const, in preparation for marking it 2012-12-18 16:57:03 +00:00
SkLerpXfermode.cpp add SkLerpXfermode 2013-05-21 21:33:11 +00:00
SkLightingImageFilter.cpp Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
SkLumaColorFilter.cpp Align SkLumaColorFilter with the spec. 2013-10-10 20:13:51 +00:00
SkMagnifierImageFilter.cpp Fixed bad bitmap size crashes 2013-12-04 17:06:49 +00:00
SkMatrixConvolutionImageFilter.cpp Fixed bad bitmap size crashes 2013-12-04 17:06:49 +00:00
SkMergeImageFilter.cpp Fixed a few places where uninitialized memory could have been read 2013-12-06 20:14:46 +00:00
SkMorphologyImageFilter.cpp Fixed bad bitmap size crashes 2013-12-04 17:06:49 +00:00
SkOffsetImageFilter.cpp Fixed bad bitmap size crashes 2013-12-04 17:06:49 +00:00
SkPaintFlagsDrawFilter.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkPerlinNoiseShader.cpp Adding more validation 2013-11-25 21:46:31 +00:00
SkPixelXorXfermode.cpp Added toString to SkXfermode-derived classes (for debugger) 2013-01-22 14:32:09 +00:00
SkPorterDuff.cpp Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning"" 2013-10-31 17:28:30 +00:00
SkRectShaderImageFilter.cpp Fixed bad bitmap size crashes 2013-12-04 17:06:49 +00:00
SkStippleMaskFilter.cpp Added toString to SkMaskFilter-derived classes 2013-03-18 17:53:38 +00:00
SkTableColorFilter.cpp Adding size parameter to read array functions 2013-10-31 18:37:50 +00:00
SkTableMaskFilter.cpp Adding size parameter to read array functions 2013-10-31 18:37:50 +00:00
SkTestImageFilters.cpp Adding more validation 2013-11-25 21:46:31 +00:00
SkTileImageFilter.cpp Implement srcRect and dstRect functionality in SkBitmapSource. This is required for the "preserveAspectRatio" options of SVG's feImage. Covered by new GM "bitmapsource". 2013-12-09 18:31:42 +00:00
SkTransparentShader.cpp Reverting r12427 2013-12-02 13:50:38 +00:00
SkXfermodeImageFilter.cpp Bounds fixes for SkXfermodeImageFilter: 2013-12-12 21:00:58 +00:00