OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkGpuBlurUtils_DEFINED | 8 #ifndef SkGpuBlurUtils_DEFINED |
9 #define SkGpuBlurUtils_DEFINED | 9 #define SkGpuBlurUtils_DEFINED |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 * as a drawContext in case the caller wishes to future draw into the result. | 22 * as a drawContext in case the caller wishes to future draw into the result. |
23 * Note: one of sigmaX and sigmaY should be non-zero! | 23 * Note: one of sigmaX and sigmaY should be non-zero! |
24 * @param context The GPU context | 24 * @param context The GPU context |
25 * @param srcTexture The source texture to be blurred. | 25 * @param srcTexture The source texture to be blurred. |
26 * @param colorSpace Color space of the source (used for the drawContext
result, too). | 26 * @param colorSpace Color space of the source (used for the drawContext
result, too). |
27 * @param dstBounds The destination bounds, relative to the source text
ure. | 27 * @param dstBounds The destination bounds, relative to the source text
ure. |
28 * @param srcBounds The source bounds, relative to the source texture.
If non-null, | 28 * @param srcBounds The source bounds, relative to the source texture.
If non-null, |
29 * no pixels will be sampled outside of this rectangle
. | 29 * no pixels will be sampled outside of this rectangle
. |
30 * @param sigmaX The blur's standard deviation in X. | 30 * @param sigmaX The blur's standard deviation in X. |
31 * @param sigmaY The blur's standard deviation in Y. | 31 * @param sigmaY The blur's standard deviation in Y. |
| 32 * @param fit backing fit for the returned draw context |
32 * @return The drawContext containing the blurred result. | 33 * @return The drawContext containing the blurred result. |
33 */ | 34 */ |
34 sk_sp<GrDrawContext> GaussianBlur(GrContext* context, | 35 sk_sp<GrDrawContext> GaussianBlur(GrContext* context, |
35 GrTexture* srcTexture, | 36 GrTexture* srcTexture, |
36 sk_sp<SkColorSpace> colorSpace, | 37 sk_sp<SkColorSpace> colorSpace, |
37 const SkIRect& dstBounds, | 38 const SkIRect& dstBounds, |
38 const SkIRect* srcBounds, | 39 const SkIRect* srcBounds, |
39 float sigmaX, | 40 float sigmaX, |
40 float sigmaY); | 41 float sigmaY, |
| 42 SkBackingFit fit = SkBackingFit::kApprox); |
41 }; | 43 }; |
42 | 44 |
43 #endif | 45 #endif |
44 #endif | 46 #endif |
OLD | NEW |