Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/effects/SkBlurMask.h

Issue 51033004: add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/effects/SkBitmapAlphaThresholdShader.cpp ('k') | src/effects/SkBlurMaskFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkBlurMask_DEFINED 10 #ifndef SkBlurMask_DEFINED
(...skipping 26 matching lines...) Expand all
37 static bool BoxBlur(SkMask* dst, const SkMask& src, 37 static bool BoxBlur(SkMask* dst, const SkMask& src,
38 SkScalar sigma, Style style, Quality quality, 38 SkScalar sigma, Style style, Quality quality,
39 SkIPoint* margin = NULL); 39 SkIPoint* margin = NULL);
40 40
41 // the "ground truth" blur does a gaussian convolution; it's slow 41 // the "ground truth" blur does a gaussian convolution; it's slow
42 // but useful for comparison purposes. 42 // but useful for comparison purposes.
43 static bool BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src, 43 static bool BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src,
44 Style style, 44 Style style,
45 SkIPoint* margin = NULL); 45 SkIPoint* margin = NULL);
46 46
47 // DEPRECATED - radius-based 47 SK_ATTR_DEPRECATED("use sigma version")
48 static bool BlurRect(SkMask *dst, const SkRect &src, 48 static bool BlurRect(SkMask *dst, const SkRect &src,
49 SkScalar radius, Style style, 49 SkScalar radius, Style style,
50 SkIPoint *margin = NULL, 50 SkIPoint *margin = NULL,
51 SkMask::CreateMode createMode = 51 SkMask::CreateMode createMode =
52 SkMask::kComputeBoundsAndRenderI mage_CreateMode); 52 SkMask::kComputeBoundsAndRenderI mage_CreateMode);
53 // DEPRECATED - radius-based 53
54 SK_ATTR_DEPRECATED("use sigma version")
54 static bool Blur(SkMask* dst, const SkMask& src, 55 static bool Blur(SkMask* dst, const SkMask& src,
55 SkScalar radius, Style style, Quality quality, 56 SkScalar radius, Style style, Quality quality,
56 SkIPoint* margin = NULL); 57 SkIPoint* margin = NULL);
57 // DEPRECATED - radius-based 58
59 SK_ATTR_DEPRECATED("use sigma version")
58 static bool BlurGroundTruth(SkMask* dst, const SkMask& src, 60 static bool BlurGroundTruth(SkMask* dst, const SkMask& src,
59 SkScalar radius, Style style, 61 SkScalar radius, Style style,
60 SkIPoint* margin = NULL); 62 SkIPoint* margin = NULL);
61 63
62 static SkScalar ConvertRadiusToSigma(SkScalar radius); 64 static SkScalar ConvertRadiusToSigma(SkScalar radius);
63 }; 65 };
64 66
65 #endif 67 #endif
OLDNEW
« no previous file with comments | « src/effects/SkBitmapAlphaThresholdShader.cpp ('k') | src/effects/SkBlurMaskFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698