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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/effects/SkBlurMaskFilter.cpp ('k') | src/effects/SkGpuBlurUtils.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkGpuBlurUtils_DEFINED
9 #define SkGpuBlurUtils_DEFINED
10
11 #if SK_SUPPORT_GPU
12 class GrTexture;
13 class GrContext;
14 #endif
15
16 struct SkRect;
17
18 namespace SkGpuBlurUtils {
19
20 #if SK_SUPPORT_GPU
21 /**
22 * Applies a 2D Gaussian blur to a given texture.
23 * @param context The GPU context
24 * @param srcTexture The source texture to be blurred.
25 * @param canClobberSrc If true, srcTexture may be overwritten, and
26 * may be returned as the result.
27 * @param rect The destination rectangle.
28 * @param sigmaX The blur's standard deviation in X.
29 * @param sigmaY The blur's standard deviation in Y.
30 * @return the blurred texture, which may be srcTexture reffed, or a
31 * new texture. It is the caller's responsibility to unref this texture.
32 */
33 GrTexture* GaussianBlur(GrContext* context,
34 GrTexture* srcTexture,
35 bool canClobberSrc,
36 const SkRect& rect,
37 float sigmaX,
38 float sigmaY);
39 #endif
40
41 };
42
43 #endif
OLDNEW
« 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