Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@7293 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
skia.committer@gmail.com 2013-01-19 07:05:38 +00:00
parent 666c5cf3af
commit 36df7ed46b
3 changed files with 10 additions and 10 deletions

View File

@ -451,9 +451,9 @@ static void S32_D32_constX_shaderproc(const SkBitmapProcState& s,
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 {
@ -477,9 +477,9 @@ static void S32_D32_constX_shaderproc(const SkBitmapProcState& s,
#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;

View File

@ -32,10 +32,10 @@ SkBicubicImageFilter::SkBicubicImageFilter(const SkSize& scale, const SkScalar c
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));
}

View File

@ -125,10 +125,10 @@ static void test_crbug_170666(skiatest::Reporter* reporter) {
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);
}