From d6176b0dcacb124539e0cfd051e6d93a9782f020 Mon Sep 17 00:00:00 2001 From: "rmistry@google.com" Date: Thu, 23 Aug 2012 18:14:13 +0000 Subject: Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) This CL is part II of IV (I broke down the 1280 files into 4 CLs). Review URL: https://codereview.appspot.com/6474054 git-svn-id: http://skia.googlecode.com/svn/trunk@5263 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/ClipperTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/ClipperTest.cpp') diff --git a/tests/ClipperTest.cpp b/tests/ClipperTest.cpp index 724ff56cd8..b914374b98 100644 --- a/tests/ClipperTest.cpp +++ b/tests/ClipperTest.cpp @@ -16,7 +16,7 @@ static void test_hairclipping(skiatest::Reporter* reporter) { bm.setConfig(SkBitmap::kARGB_8888_Config, 4, 4); bm.allocPixels(); bm.eraseColor(SK_ColorWHITE); - + SkPaint paint; paint.setAntiAlias(true); @@ -24,7 +24,7 @@ static void test_hairclipping(skiatest::Reporter* reporter) { canvas.clipRect(SkRect::MakeWH(SkIntToScalar(4), SkIntToScalar(2))); canvas.drawLine(SkFloatToScalar(1.5f), SkFloatToScalar(1.5f), SkFloatToScalar(3.5f), SkFloatToScalar(3.5f), paint); - + /** * We had a bug where we misinterpreted the bottom of the clip, and * would draw another pixel (to the right in this case) on the same @@ -50,7 +50,7 @@ static void test_hairclipping(skiatest::Reporter* reporter) { static void test_edgeclipper(skiatest::Reporter* reporter) { SkEdgeClipper clipper; - + const SkPoint pts[] = { { SkFloatToScalar(3.0995476e+010f), SkFloatToScalar(42.929779f) }, { SkFloatToScalar(-3.0995163e+010f), SkFloatToScalar(51.050385f) }, @@ -97,7 +97,7 @@ static void test_intersectline(skiatest::Reporter* reporter) { } REPORTER_ASSERT(reporter, !valid); } - + static const SkPoint gFull[] = { // diagonals, chords { L, T }, { R, B }, @@ -121,7 +121,7 @@ static void test_intersectline(skiatest::Reporter* reporter) { } REPORTER_ASSERT(reporter, valid && !memcmp(&gFull[i], dst, sizeof(dst))); } - + static const SkPoint gPartial[] = { { L - 10, CY }, { CX, CY }, { L, CY }, { CX, CY }, { CX, T - 10 }, { CX, CY }, { CX, T }, { CX, CY }, @@ -141,7 +141,7 @@ static void test_intersectline(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, valid && !memcmp(&gPartial[i+2], dst, sizeof(dst))); } - + } static void TestClipper(skiatest::Reporter* reporter) { -- cgit v1.2.3