aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ClipperTest.cpp
diff options
context:
space:
mode:
authorGravatar rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-23 18:14:13 +0000
committerGravatar rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-23 18:14:13 +0000
commitd6176b0dcacb124539e0cfd051e6d93a9782f020 (patch)
tree9e6f4b465e54c9b26e1ba70cd8890b55abb08464 /tests/ClipperTest.cpp
parentfbfcd5602128ec010c82cb733c9cdc0a3254f9f3 (diff)
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
Diffstat (limited to 'tests/ClipperTest.cpp')
-rw-r--r--tests/ClipperTest.cpp12
1 files changed, 6 insertions, 6 deletions
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) {