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

Unified Diff: src/effects/SkGpuBlurUtils.h

Issue 18771004: Move gaussianBlur functionality to src\effects (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Renamed SkBlurUtils to SkGpuBlurUtils Created 7 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/effects/SkBlurMaskFilter.cpp ('k') | src/effects/SkGpuBlurUtils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkGpuBlurUtils.h
===================================================================
--- src/effects/SkGpuBlurUtils.h (revision 0)
+++ src/effects/SkGpuBlurUtils.h (revision 0)
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkGpuBlurUtils_DEFINED
+#define SkGpuBlurUtils_DEFINED
+
+#if SK_SUPPORT_GPU
+class GrTexture;
+class GrContext;
+#endif
+
+struct SkRect;
+
+namespace SkGpuBlurUtils {
+
+#if SK_SUPPORT_GPU
+ /**
+ * Applies a 2D Gaussian blur to a given texture.
+ * @param context The GPU context
+ * @param srcTexture The source texture to be blurred.
+ * @param canClobberSrc If true, srcTexture may be overwritten, and
+ * may be returned as the result.
+ * @param rect The destination rectangle.
+ * @param sigmaX The blur's standard deviation in X.
+ * @param sigmaY The blur's standard deviation in Y.
+ * @return the blurred texture, which may be srcTexture reffed, or a
+ * new texture. It is the caller's responsibility to unref this texture.
+ */
+ GrTexture* GaussianBlur(GrContext* context,
+ GrTexture* srcTexture,
+ bool canClobberSrc,
+ const SkRect& rect,
+ float sigmaX,
+ float sigmaY);
+#endif
+
+};
+
+#endif
Property changes on: src\effects\SkGpuBlurUtils.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « src/effects/SkBlurMaskFilter.cpp ('k') | src/effects/SkGpuBlurUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698