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

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

Issue 248613004: Fast path for blurred round rects -- blur a small 9patch rect on the CPU (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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
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 24 matching lines...) Expand all
35 SkIPoint *margin = NULL, 35 SkIPoint *margin = NULL,
36 SkMask::CreateMode createMode = 36 SkMask::CreateMode createMode =
37 SkMask::kComputeBoundsAndRenderI mage_CreateMode); 37 SkMask::kComputeBoundsAndRenderI mage_CreateMode);
38 static bool BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src, 38 static bool BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src,
39 Style style, 39 Style style,
40 SkIPoint *margin = NULL, 40 SkIPoint *margin = NULL,
41 SkMask::CreateMode createMode = 41 SkMask::CreateMode createMode =
42 SkMask::kComputeBoundsAndRenderI mage_CreateMode); 42 SkMask::kComputeBoundsAndRenderI mage_CreateMode);
43 static bool BoxBlur(SkMask* dst, const SkMask& src, 43 static bool BoxBlur(SkMask* dst, const SkMask& src,
44 SkScalar sigma, Style style, Quality quality, 44 SkScalar sigma, Style style, Quality quality,
45 SkIPoint* margin = NULL); 45 SkIPoint* margin = NULL, bool force_quality=false);
bsalomon 2014/04/23 19:50:30 comment about force_quality? Also should be forceQ
humper 2014/04/23 20:11:49 Done.
46 46
47 // the "ground truth" blur does a gaussian convolution; it's slow 47 // the "ground truth" blur does a gaussian convolution; it's slow
48 // but useful for comparison purposes. 48 // but useful for comparison purposes.
49 static bool BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src, 49 static bool BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src,
50 Style style, 50 Style style,
51 SkIPoint* margin = NULL); 51 SkIPoint* margin = NULL);
52 52
53 static SkScalar ConvertRadiusToSigma(SkScalar radius); 53 static SkScalar ConvertRadiusToSigma(SkScalar radius);
54 54
55 /* Helper functions for analytic rectangle blurs */ 55 /* Helper functions for analytic rectangle blurs */
(...skipping 26 matching lines...) Expand all
82 */ 82 */
83 83
84 static void ComputeBlurredScanline(uint8_t* pixels, const uint8_t* profile, 84 static void ComputeBlurredScanline(uint8_t* pixels, const uint8_t* profile,
85 unsigned int width, SkScalar sigma); 85 unsigned int width, SkScalar sigma);
86 86
87 87
88 88
89 }; 89 };
90 90
91 #endif 91 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698