diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-09 16:30:38 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-09 16:30:38 +0000 |
commit | d43f6449129f11c9823bdeb0fb8ac38ab6d76a28 (patch) | |
tree | 4e68bde3d2539927515d40c5233e8ef8631d81d4 /src/utils/SkPathUtils.cpp | |
parent | fe433c13705bc626b67198097109984ce851d437 (diff) |
Animated the PathUtils Sample to show path contours# Enter a description of the change.
Animated the PathUtils Sample to path contours
BUG=
R=reed@google.com, scroggo@google.com, djsollen@google.com
Author: dierk@google.com
Review URL: https://chromiumcodereview.appspot.com/18552005
git-svn-id: http://skia.googlecode.com/svn/trunk@9934 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/SkPathUtils.cpp')
-rw-r--r-- | src/utils/SkPathUtils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/SkPathUtils.cpp b/src/utils/SkPathUtils.cpp index dd50ff7957..2e17ccb1d3 100644 --- a/src/utils/SkPathUtils.cpp +++ b/src/utils/SkPathUtils.cpp @@ -97,19 +97,19 @@ static void Line2path_span(SkPath* path, const char* line, void SkPathUtils::BitsToPath_Path(SkPath* path, const char* bitmap, - int h, int w, int stride) { + int w, int h, int stride) { // loop for every line in bitmap for (int i = 0; i < h; ++i) { // fn ptr handles each line separately //l2p_fn(path, &bitmap[i*stride], i, w); Line2path_span(path, &bitmap[i*stride], i, w); } - Simplify(*path, path); // simplify resulting bitmap + Simplify(*path, path); // simplify resulting path. } void SkPathUtils::BitsToPath_Region(SkPath* path, const char* bitmap, - int h, int w, int stride) { + int w, int h, int stride) { SkRegion region; // loop for each line |