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
diff --git a/src/utils/SkPathUtils.cpp b/src/utils/SkPathUtils.cpp
index dd50ff7..2e17ccb 100644
--- a/src/utils/SkPathUtils.cpp
+++ b/src/utils/SkPathUtils.cpp
@@ -97,19 +97,19 @@
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