| 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" |
| 11 #include "SkStrokeRec.h" |
| 11 #include "SkSurface.h" | 12 #include "SkSurface.h" |
| 12 #include "Test.h" | 13 #include "Test.h" |
| 13 | 14 |
| 14 // test that we can draw an aa-rect at coordinates > 32K (bigger than fixedpoint
) | 15 // test that we can draw an aa-rect at coordinates > 32K (bigger than fixedpoint
) |
| 15 static void test_big_aa_rect(skiatest::Reporter* reporter) { | 16 static void test_big_aa_rect(skiatest::Reporter* reporter) { |
| 16 SkBitmap output; | 17 SkBitmap output; |
| 17 SkPMColor pixel[1]; | 18 SkPMColor pixel[1]; |
| 18 output.installPixels(SkImageInfo::MakeN32Premul(1, 1), pixel, 4); | 19 output.installPixels(SkImageInfo::MakeN32Premul(1, 1), pixel, 4); |
| 19 | 20 |
| 20 SkSurface* surf = SkSurface::NewRasterN32Premul(300, 33300); | 21 SkSurface* surf = SkSurface::NewRasterN32Premul(300, 33300); |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 test_crbug_124652(); | 281 test_crbug_124652(); |
| 281 test_crbug_140642(); | 282 test_crbug_140642(); |
| 282 test_crbug_140803(); | 283 test_crbug_140803(); |
| 283 test_inversepathwithclip(); | 284 test_inversepathwithclip(); |
| 284 // why? | 285 // why? |
| 285 if (false) test_crbug131181(); | 286 if (false) test_crbug131181(); |
| 286 test_infinite_dash(reporter); | 287 test_infinite_dash(reporter); |
| 287 test_crbug_165432(reporter); | 288 test_crbug_165432(reporter); |
| 288 test_big_aa_rect(reporter); | 289 test_big_aa_rect(reporter); |
| 289 } | 290 } |
| OLD | NEW |