if (s.fInvType > SkMatrix::kTranslate_Mask) {
SkPoint pt;
- s.fInvProc(*s.fInvMatrix,
+ s.fInvProc(*s.fInvMatrix,
SkIntToScalar(x) + SK_ScalarHalf,
- SkIntToScalar(y) + SK_ScalarHalf,
+ SkIntToScalar(y) + SK_ScalarHalf,
&pt);
yTemp = SkScalarFloorToInt(pt.fY);
} else {
#ifdef SK_DEBUG
{
SkPoint pt;
- s.fInvProc(*s.fInvMatrix,
+ s.fInvProc(*s.fInvMatrix,
SkIntToScalar(x) + SK_ScalarHalf,
- SkIntToScalar(y) + SK_ScalarHalf,
+ SkIntToScalar(y) + SK_ScalarHalf,
&pt);
int iY2;
SkBicubicImageFilter* SkBicubicImageFilter::CreateMitchell(const SkSize& scale,
SkImageFilter* input) {
static const SkScalar coefficients[16] = {
- DS( 1.0 / 18.0), DS(-9.0 / 18.0), DS( 15.0 / 18.0), DS( -7.0 / 18.0),
- DS(16.0 / 18.0), DS( 0.0 / 18.0), DS(-36.0 / 18.0), DS( 21.0 / 18.0),
- DS( 1.0 / 18.0), DS( 9.0 / 18.0), DS( 27.0 / 18.0), DS(-21.0 / 18.0),
- DS( 0.0 / 18.0), DS( 0.0 / 18.0), DS( -6.0 / 18.0), DS( 7.0 / 18.0),
+ DS( 1.0 / 18.0), DS(-9.0 / 18.0), DS( 15.0 / 18.0), DS( -7.0 / 18.0),
+ DS(16.0 / 18.0), DS( 0.0 / 18.0), DS(-36.0 / 18.0), DS( 21.0 / 18.0),
+ DS( 1.0 / 18.0), DS( 9.0 / 18.0), DS( 27.0 / 18.0), DS(-21.0 / 18.0),
+ DS( 0.0 / 18.0), DS( 0.0 / 18.0), DS( -6.0 / 18.0), DS( 7.0 / 18.0),
};
return SkNEW_ARGS(SkBicubicImageFilter, (scale, coefficients, input));
}
paint.setAntiAlias(true);
SkAutoTUnref<SkSurface> surface(new_surface(1000, 1000));
-
+
build_path_simple_170666(path);
surface->getCanvas()->drawPath(path, paint);
-
+
build_path_170666(path);
surface->getCanvas()->drawPath(path, paint);
}