| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkBitmap.h" | 8 #include "SkBitmap.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkDashPathEffect.h" | 10 #include "SkDashPathEffect.h" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 SkAutoTUnref<SkDashPathEffect> dontAssert(SkDashPathEffect::Create(vals, 4,
-248.135982067f)); | 197 SkAutoTUnref<SkDashPathEffect> dontAssert(SkDashPathEffect::Create(vals, 4,
-248.135982067f)); |
| 198 } | 198 } |
| 199 | 199 |
| 200 static void test_crbug_124652() { | 200 static void test_crbug_124652() { |
| 201 /* | 201 /* |
| 202 http://code.google.com/p/chromium/issues/detail?id=124652 | 202 http://code.google.com/p/chromium/issues/detail?id=124652 |
| 203 This particular test/bug only applies to the float case, where | 203 This particular test/bug only applies to the float case, where |
| 204 large values can "swamp" small ones. | 204 large values can "swamp" small ones. |
| 205 */ | 205 */ |
| 206 SkScalar intervals[2] = {837099584, 33450}; | 206 SkScalar intervals[2] = {837099584, 33450}; |
| 207 SkAutoTUnref<SkDashPathEffect> dash(SkDashPathEffect::Create(intervals, 2, -
10, false)); | 207 SkAutoTUnref<SkDashPathEffect> dash(SkDashPathEffect::Create(intervals, 2, -
10)); |
| 208 } | 208 } |
| 209 | 209 |
| 210 static void test_bigcubic() { | 210 static void test_bigcubic() { |
| 211 SkPath path; | 211 SkPath path; |
| 212 path.moveTo(64, 3); | 212 path.moveTo(64, 3); |
| 213 path.cubicTo(-329936, -100000000, -329936, 100000000, 1153, 330003); | 213 path.cubicTo(-329936, -100000000, -329936, 100000000, 1153, 330003); |
| 214 | 214 |
| 215 SkPaint paint; | 215 SkPaint paint; |
| 216 paint.setAntiAlias(true); | 216 paint.setAntiAlias(true); |
| 217 | 217 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 test_crbug_124652(); | 283 test_crbug_124652(); |
| 284 test_crbug_140642(); | 284 test_crbug_140642(); |
| 285 test_crbug_140803(); | 285 test_crbug_140803(); |
| 286 test_inversepathwithclip(); | 286 test_inversepathwithclip(); |
| 287 // why? | 287 // why? |
| 288 if (false) test_crbug131181(); | 288 if (false) test_crbug131181(); |
| 289 test_infinite_dash(reporter); | 289 test_infinite_dash(reporter); |
| 290 test_crbug_165432(reporter); | 290 test_crbug_165432(reporter); |
| 291 test_big_aa_rect(reporter); | 291 test_big_aa_rect(reporter); |
| 292 } | 292 } |
| OLD | NEW |