aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_tool_utils.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-10-19 06:39:17 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-19 06:39:17 -0700
commit9c4909b50ff9d0fdf9bce2a67cd459aeb28cdc3c (patch)
treee5ca55588af4b047c73ea0df40fd9557b57b7a54 /tools/sk_tool_utils.h
parentb3f1636ec80e66188ddc01306672a9a79a954dfe (diff)
Add imgblur tool to assist BlurMaskFilter debugging
imgblur is intended to establish a ground truth for debugging mask blur issues. It performs a brute force (non-separable) Gaussian blur of the provided image. The blur code itself is in sk_tools_utils so it can be more easily used programmatically in other places (e.g., blur unit tests). Review URL: https://codereview.chromium.org/1384203002
Diffstat (limited to 'tools/sk_tool_utils.h')
-rw-r--r--tools/sk_tool_utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h
index e0ad1df3ec..052bade6a7 100644
--- a/tools/sk_tool_utils.h
+++ b/tools/sk_tool_utils.h
@@ -135,6 +135,11 @@ namespace sk_tool_utils {
void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst);
void make_big_path(SkPath& path);
+
+ // Return a blurred version of 'src'. This doesn't use a separable filter
+ // so it is slow!
+ SkBitmap slow_blur(const SkBitmap& src, float sigma);
+
} // namespace sk_tool_utils
#endif // sk_tool_utils_DEFINED