From 36df7ed46b41ac31cb2205bfd3ae37659d61e2fb Mon Sep 17 00:00:00 2001 From: "skia.committer@gmail.com" Date: Sat, 19 Jan 2013 07:05:38 +0000 Subject: [PATCH] Sanitizing source files in Skia_Periodic_House_Keeping git-svn-id: http://skia.googlecode.com/svn/trunk@7293 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkBitmapProcState.cpp | 8 ++++---- src/effects/SkBicubicImageFilter.cpp | 8 ++++---- tests/PathTest.cpp | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp index 80d2e71..50f4c55 100644 --- a/src/core/SkBitmapProcState.cpp +++ b/src/core/SkBitmapProcState.cpp @@ -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; diff --git a/src/effects/SkBicubicImageFilter.cpp b/src/effects/SkBicubicImageFilter.cpp index 22c8bff..cb85c81 100644 --- a/src/effects/SkBicubicImageFilter.cpp +++ b/src/effects/SkBicubicImageFilter.cpp @@ -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)); } diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index ee10140..5079b7e 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -125,10 +125,10 @@ static void test_crbug_170666(skiatest::Reporter* reporter) { paint.setAntiAlias(true); SkAutoTUnref surface(new_surface(1000, 1000)); - + build_path_simple_170666(path); surface->getCanvas()->drawPath(path, paint); - + build_path_170666(path); surface->getCanvas()->drawPath(path, paint); } -- 2.7.4