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

Unified Diff: src/utils/SkPathUtils.cpp

Issue 18552005: Animated the PathUtils Sample to show path contours (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fixed (lower)casing of local variables. Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samplecode/SamplePathUtils.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkPathUtils.cpp
diff --git a/src/utils/SkPathUtils.cpp b/src/utils/SkPathUtils.cpp
index dd50ff79573222c87543f381717be91580954d82..2e17ccb1d33a3d047d8994a3f8dc15e4807a4522 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
« no previous file with comments | « samplecode/SamplePathUtils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698