fix unused-return-result-warning for invert/getPosTan
git-svn-id: http://skia.googlecode.com/svn/trunk@3733 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
8b0a335b6b
commit
5bfa55b1cd
@ -193,18 +193,18 @@ void TestMatrix(skiatest::Reporter* reporter) {
|
||||
|
||||
mat.reset();
|
||||
mat.setTranslate(SK_Scalar1, SK_Scalar1);
|
||||
mat.invert(&inverse);
|
||||
REPORTER_ASSERT(reporter, mat.invert(&inverse));
|
||||
iden1.setConcat(mat, inverse);
|
||||
REPORTER_ASSERT(reporter, is_identity(iden1));
|
||||
|
||||
mat.setScale(SkIntToScalar(2), SkIntToScalar(2));
|
||||
mat.invert(&inverse);
|
||||
REPORTER_ASSERT(reporter, mat.invert(&inverse));
|
||||
iden1.setConcat(mat, inverse);
|
||||
REPORTER_ASSERT(reporter, is_identity(iden1));
|
||||
test_flatten(reporter, mat);
|
||||
|
||||
mat.setScale(SK_Scalar1/2, SK_Scalar1/2);
|
||||
mat.invert(&inverse);
|
||||
REPORTER_ASSERT(reporter, mat.invert(&inverse));
|
||||
iden1.setConcat(mat, inverse);
|
||||
REPORTER_ASSERT(reporter, is_identity(iden1));
|
||||
test_flatten(reporter, mat);
|
||||
@ -212,7 +212,7 @@ void TestMatrix(skiatest::Reporter* reporter) {
|
||||
mat.setScale(SkIntToScalar(3), SkIntToScalar(5), SkIntToScalar(20), 0);
|
||||
mat.postRotate(SkIntToScalar(25));
|
||||
REPORTER_ASSERT(reporter, mat.invert(NULL));
|
||||
mat.invert(&inverse);
|
||||
REPORTER_ASSERT(reporter, mat.invert(&inverse));
|
||||
iden1.setConcat(mat, inverse);
|
||||
REPORTER_ASSERT(reporter, is_identity(iden1));
|
||||
iden2.setConcat(inverse, mat);
|
||||
|
@ -33,17 +33,6 @@ static void TestPathMeasure(skiatest::Reporter* reporter) {
|
||||
length = meas.getLength();
|
||||
// SkDebugf("circle arc-length = %g\n", length);
|
||||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
SkScalar d = length * i / 8;
|
||||
SkPoint p;
|
||||
SkVector v;
|
||||
meas.getPosTan(d, &p, &v);
|
||||
#if 0
|
||||
SkDebugf("circle arc-length=%g, pos[%g %g] tan[%g %g]\n",
|
||||
d, p.fX, p.fY, v.fX, v.fY);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Test the behavior following a close not followed by a move.
|
||||
path.reset();
|
||||
path.lineTo(SK_Scalar1, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user