API change: SkPath computeBounds -> getBounds
git-svn-id: http://skia.googlecode.com/svn/trunk@140 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleStrokeText.cpp b/samplecode/SampleStrokeText.cpp
index 0627d51..2743897 100644
--- a/samplecode/SampleStrokeText.cpp
+++ b/samplecode/SampleStrokeText.cpp
@@ -29,8 +29,7 @@
original.getTextWidths(&chars[i], 1, &width);
x += width;
}
- SkRect bounds;
- path.computeBounds(&bounds, SkPath::kExact_BoundsType);
+ SkRect bounds = path.getBounds();
SkScalar sw = -original.getStrokeWidth();
bounds.inset(sw, sw);
path.offset(-bounds.fLeft, -bounds.fTop);
@@ -76,8 +75,7 @@
original.getTextWidths(&chars[i], 1, &width);
x += width;
}
- SkRect bounds;
- path.computeBounds(&bounds, SkPath::kExact_BoundsType);
+ SkRect bounds = path.getBounds();
SkScalar sw = -original.getStrokeWidth();
bounds.inset(sw, sw);
path.offset(-bounds.fLeft, -bounds.fTop);