Chromium Code Reviews| Index: src/effects/SkGpuBlurUtils.h |
| diff --git a/src/effects/SkGpuBlurUtils.h b/src/effects/SkGpuBlurUtils.h |
| index 8bc4377f5980af690cf3efd364450c2f7cf63b37..c3af467300196998511084bd470ce6de6860c0fb 100644 |
| --- a/src/effects/SkGpuBlurUtils.h |
| +++ b/src/effects/SkGpuBlurUtils.h |
| @@ -9,17 +9,14 @@ |
| #define SkGpuBlurUtils_DEFINED |
| #if SK_SUPPORT_GPU |
| -#include "GrTextureProvider.h" |
| +#include "GrDrawContext.h" |
| -class GrTexture; |
| class GrContext; |
| -#endif |
| +class GrTexture; |
| struct SkRect; |
| namespace SkGpuBlurUtils { |
| - |
| -#if SK_SUPPORT_GPU |
| /** |
| * Applies a 2D Gaussian blur to a given texture. |
| * @param context The GPU context |
| @@ -33,15 +30,15 @@ namespace SkGpuBlurUtils { |
| * @return the blurred texture, which may be srcTexture reffed, or a |
| * new texture. It is the caller's responsibility to unref this texture. |
|
bsalomon
2016/05/11 13:07:42
Maybe update this comment and note that callers ma
robertphillips
2016/05/11 14:26:30
Done.
|
| */ |
| - GrTexture* GaussianBlur(GrContext* context, |
| - GrTexture* srcTexture, |
| - bool gammaCorrect, |
| - const SkRect& dstBounds, |
| - const SkRect* srcBounds, |
| - float sigmaX, |
| - float sigmaY); |
| -#endif |
| + sk_sp<GrDrawContext> GaussianBlur(GrContext* context, |
| + GrTexture* srcTexture, |
| + bool gammaCorrect, |
| + const SkRect& dstBounds, |
| + const SkRect* srcBounds, |
| + float sigmaX, |
| + float sigmaY); |
| }; |
| #endif |
| +#endif |