| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 <cmath> | 8 #include <cmath> |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkGeometry.h" | 10 #include "SkGeometry.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 SkPath path; | 173 SkPath path; |
| 174 procs[i](&path); | 174 procs[i](&path); |
| 175 | 175 |
| 176 SkRegion rgn; | 176 SkRegion rgn; |
| 177 rgn.setPath(path, clip); | 177 rgn.setPath(path, clip); |
| 178 path.toggleInverseFillType(); | 178 path.toggleInverseFillType(); |
| 179 rgn.setPath(path, clip); | 179 rgn.setPath(path, clip); |
| 180 } | 180 } |
| 181 } | 181 } |
| 182 | 182 |
| 183 #if defined(WIN32) | 183 #ifdef SK_BUILD_FOR_WIN |
| 184 #define SUPPRESS_VISIBILITY_WARNING | 184 #define SUPPRESS_VISIBILITY_WARNING |
| 185 #else | 185 #else |
| 186 #define SUPPRESS_VISIBILITY_WARNING __attribute__((visibility("hidden"))) | 186 #define SUPPRESS_VISIBILITY_WARNING __attribute__((visibility("hidden"))) |
| 187 #endif | 187 #endif |
| 188 | 188 |
| 189 static void test_path_close_issue1474(skiatest::Reporter* reporter) { | 189 static void test_path_close_issue1474(skiatest::Reporter* reporter) { |
| 190 // This test checks that r{Line,Quad,Conic,Cubic}To following a close() | 190 // This test checks that r{Line,Quad,Conic,Cubic}To following a close() |
| 191 // are relative to the point we close to, not relative to the point we close
from. | 191 // are relative to the point we close to, not relative to the point we close
from. |
| 192 SkPath path; | 192 SkPath path; |
| 193 SkPoint last; | 193 SkPoint last; |
| (...skipping 4118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4312 PathTest_Private::TestPathTo(reporter); | 4312 PathTest_Private::TestPathTo(reporter); |
| 4313 PathRefTest_Private::TestPathRef(reporter); | 4313 PathRefTest_Private::TestPathRef(reporter); |
| 4314 PathTest_Private::TestPathrefListeners(reporter); | 4314 PathTest_Private::TestPathrefListeners(reporter); |
| 4315 test_dump(reporter); | 4315 test_dump(reporter); |
| 4316 test_path_crbug389050(reporter); | 4316 test_path_crbug389050(reporter); |
| 4317 test_path_crbugskia2820(reporter); | 4317 test_path_crbugskia2820(reporter); |
| 4318 test_skbug_3469(reporter); | 4318 test_skbug_3469(reporter); |
| 4319 test_skbug_3239(reporter); | 4319 test_skbug_3239(reporter); |
| 4320 test_bounds_crbug_513799(reporter); | 4320 test_bounds_crbug_513799(reporter); |
| 4321 } | 4321 } |
| OLD | NEW |