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

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: Added Derek's comments as well. 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
« samplecode/SamplePathUtils.cpp ('K') | « 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..f23432a667011d39f8285608f72d12447b300849 100644
--- a/src/utils/SkPathUtils.cpp
+++ b/src/utils/SkPathUtils.cpp
@@ -97,7 +97,7 @@ 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
@@ -109,7 +109,7 @@ void SkPathUtils::BitsToPath_Path(SkPath* 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
« samplecode/SamplePathUtils.cpp ('K') | « samplecode/SamplePathUtils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698