aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkPathUtils.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-09 16:30:38 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-09 16:30:38 +0000
commitd43f6449129f11c9823bdeb0fb8ac38ab6d76a28 (patch)
tree4e68bde3d2539927515d40c5233e8ef8631d81d4 /src/utils/SkPathUtils.cpp
parentfe433c13705bc626b67198097109984ce851d437 (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.cpp6
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