diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-31 17:28:30 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-31 17:28:30 +0000 |
commit | 4469938e92d779dff05e745559e67907bbf21e78 (patch) | |
tree | c87072ff8cef5709436279a1f771160511debd2a /include/effects | |
parent | 6fcbfcead5dc1b61fa5b4c139a1a3714e8c58091 (diff) |
Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning""
This reverts commit 1e787c38fa71f2a21fd728f1b1d620b9b09b0d3d.
BUG=
Review URL: https://codereview.chromium.org/54603004
git-svn-id: http://skia.googlecode.com/svn/trunk@12057 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/effects')
-rw-r--r-- | include/effects/SkBlurDrawLooper.h | 2 | ||||
-rw-r--r-- | include/effects/SkBlurMaskFilter.h | 6 | ||||
-rw-r--r-- | include/effects/SkEmbossMaskFilter.h | 2 | ||||
-rw-r--r-- | include/effects/SkPorterDuff.h | 4 | ||||
-rw-r--r-- | include/effects/SkRectShaderImageFilter.h | 4 |
5 files changed, 8 insertions, 10 deletions
diff --git a/include/effects/SkBlurDrawLooper.h b/include/effects/SkBlurDrawLooper.h index 8e0c2dd001..013e80714f 100644 --- a/include/effects/SkBlurDrawLooper.h +++ b/include/effects/SkBlurDrawLooper.h @@ -38,7 +38,7 @@ public: SkBlurDrawLooper(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy, uint32_t flags = kNone_BlurFlag); - // DEPRECATED - radius-based +// SK_ATTR_DEPRECATED("use sigma version") SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags = kNone_BlurFlag); virtual ~SkBlurDrawLooper(); diff --git a/include/effects/SkBlurMaskFilter.h b/include/effects/SkBlurMaskFilter.h index d590b275d8..9b352dc1e4 100644 --- a/include/effects/SkBlurMaskFilter.h +++ b/include/effects/SkBlurMaskFilter.h @@ -33,9 +33,7 @@ public: kAll_BlurFlag = 0x03 }; - /** - * DEPRECATED - radius-based - */ + SK_ATTR_DEPRECATED("use sigma version") static SkMaskFilter* Create(SkScalar radius, BlurStyle style, uint32_t flags = kNone_BlurFlag); @@ -59,7 +57,7 @@ public: static SkMaskFilter* CreateEmboss(SkScalar blurSigma, const SkScalar direction[3], SkScalar ambient, SkScalar specular); - // DEPRECATED - radius-based + SK_ATTR_DEPRECATED("use sigma version") static SkMaskFilter* CreateEmboss(const SkScalar direction[3], SkScalar ambient, SkScalar specular, SkScalar blurRadius); diff --git a/include/effects/SkEmbossMaskFilter.h b/include/effects/SkEmbossMaskFilter.h index 4b5bd6f983..7210b78c5c 100644 --- a/include/effects/SkEmbossMaskFilter.h +++ b/include/effects/SkEmbossMaskFilter.h @@ -25,7 +25,7 @@ public: SkEmbossMaskFilter(SkScalar blurSigma, const Light& light); - // DEPRECATED - radius-based + SK_ATTR_DEPRECATED("use sigma version") SkEmbossMaskFilter(const Light& light, SkScalar blurRadius); // overrides from SkMaskFilter diff --git a/include/effects/SkPorterDuff.h b/include/effects/SkPorterDuff.h index c5f549211d..e984e8e9b4 100644 --- a/include/effects/SkPorterDuff.h +++ b/include/effects/SkPorterDuff.h @@ -13,8 +13,6 @@ class SkXfermode; -/** DEPRECATED - use SkXfermode::Mode instead - */ class SK_API SkPorterDuff { public: /** List of predefined xfermodes. In general, the algebra for the modes @@ -76,6 +74,6 @@ public: /** Return the corersponding SkXfermode::Mode */ static SkXfermode::Mode ToXfermodeMode(Mode); -}; +} SK_ATTR_DEPRECATED("use SkXfermode::Mode"); #endif diff --git a/include/effects/SkRectShaderImageFilter.h b/include/effects/SkRectShaderImageFilter.h index 650a5833ad..ea974785a3 100644 --- a/include/effects/SkRectShaderImageFilter.h +++ b/include/effects/SkRectShaderImageFilter.h @@ -25,7 +25,9 @@ public: * If NULL or a given crop edge is not specified, the source * primitive's bounds are used instead. */ - /* DEPRECATED */ static SkRectShaderImageFilter* Create(SkShader* s, const SkRect& rect); + SK_ATTR_DEPRECATED("use Create(SkShader*, const CropRect*)") + static SkRectShaderImageFilter* Create(SkShader* s, const SkRect& rect); + static SkRectShaderImageFilter* Create(SkShader* s, const CropRect* rect = NULL); virtual ~SkRectShaderImageFilter(); |