skia2/include/effects
commit-bot@chromium.org 001f4ed2fb Extract most of the mutable state of SkShader into a separate Context object.
SkShader currently stores some state during draw calls via setContext(...).
Move that mutable state into a separate SkShader::Context class that is
constructed on demand for the duration of the draw.

Calls to setContext() are replaced with createContext() which returns a context
corresponding to the shader object or NULL if the parameters to createContext
are invalid.

TEST=out/Debug/dm
BUG=skia:1976
R=scroggo@google.com, skyostil@chromium.org, tomhudson@chromium.org, senorblanco@chromium.org, reed@google.com, bungeman@google.com

Author: dominikg@chromium.org

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

git-svn-id: http://skia.googlecode.com/svn/trunk@14216 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-04-16 10:16:39 +00:00
..
Sk1DPathEffect.h Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
Sk2DPathEffect.h Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
SkAlphaThresholdFilter.h Add AlphaThreshold filter. 2014-01-06 23:41:14 +00:00
SkArithmeticMode.h 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. 2014-04-02 19:32:15 +00:00
SkAvoidXfermode.h Allow toString capability to be toggled independent of developer mode. 2014-03-13 18:02:17 +00:00
SkBicubicImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkBitmapSource.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkBlurDrawLooper.h Make sure SkDrawLooper objects can only be allocated on the heap. 2014-04-15 15:48:36 +00:00
SkBlurImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkBlurMaskFilter.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
SkColorFilterImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkColorMatrix.h Revert of Revert "Serialization of SkPictureImageFilter" (https://codereview.chromium.org/153583007/) 2014-02-07 12:20:04 +00:00
SkColorMatrixFilter.h Allow toString capability to be toggled independent of developer mode. 2014-03-13 18:02:17 +00:00
SkComposeImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkCornerPathEffect.h Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
SkDashPathEffect.h Remove scaleToFit from DashPathEffect 2014-03-31 18:52:51 +00:00
SkDiscretePathEffect.h Factory methods for heap-allocated SkPathEffect and SkXfermode objects. 2014-02-20 20:40:19 +00:00
SkDisplacementMapEffect.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkDrawExtraPathEffect.h Export effects classes with SK_API. 2012-10-12 14:41:39 +00:00
SkDropShadowImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkEmbossMaskFilter.h Allow toString capability to be toggled independent of developer mode. 2014-03-13 18:02:17 +00:00
SkGradientShader.h Add flag to gradients to interpolate colors in premul space. Experimental API to encapsulate the shared parameters for all gradients into a struct. 2013-05-24 14:58:44 +00:00
SkKernel33MaskFilter.h Allow toString capability to be toggled independent of developer mode. 2014-03-13 18:02:17 +00:00
SkLayerDrawLooper.h Make sure SkDrawLooper objects can only be allocated on the heap. 2014-04-15 15:48:36 +00:00
SkLayerRasterizer.h Create SkLayerRasterizer w/o destroying Builder. 2014-04-10 20:42:53 +00:00
SkLerpXfermode.h Allow toString capability to be toggled independent of developer mode. 2014-03-13 18:02:17 +00:00
SkLightingImageFilter.h Refactor read and write buffers. 2014-01-30 18:58:24 +00:00
SkLumaColorFilter.h Allow toString capability to be toggled independent of developer mode. 2014-03-13 18:02:17 +00:00
SkMagnifierImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkMatrixConvolutionImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkMatrixImageFilter.h Implement a generic matrix transform image filter. 2014-03-25 17:35:10 +00:00
SkMergeImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkMorphologyImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkOffsetImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkPaintFlagsDrawFilter.h change SkDrawFilter::filter to return a bool, where false means don't-draw 2012-11-26 20:26:54 +00:00
SkPerlinNoiseShader.h Extract most of the mutable state of SkShader into a separate Context object. 2014-04-16 10:16:39 +00:00
SkPictureImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkPixelXorXfermode.h Allow toString capability to be toggled independent of developer mode. 2014-03-13 18:02:17 +00:00
SkPorterDuff.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
SkRectShaderImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkStippleMaskFilter.h Allow toString capability to be toggled independent of developer mode. 2014-03-13 18:02:17 +00:00
SkTableColorFilter.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
SkTableMaskFilter.h Allow toString capability to be toggled independent of developer mode. 2014-03-13 18:02:17 +00:00
SkTestImageFilters.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkTileImageFilter.h Implement support for a Context parameter in image filters 2014-03-14 15:44:01 +00:00
SkTransparentShader.h Extract most of the mutable state of SkShader into a separate Context object. 2014-04-16 10:16:39 +00:00
SkXfermodeImageFilter.h Fix SkXfermodeImageFilter when an input is cropped out. 2014-04-01 19:15:23 +00:00