OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "gm.h" | 8 #include "gm.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkPath.h" |
10 | 11 |
11 #define WIDTH 400 | 12 #define WIDTH 400 |
12 #define HEIGHT 600 | 13 #define HEIGHT 600 |
13 | 14 |
14 namespace { | 15 namespace { |
15 // Concave test | 16 // Concave test |
16 void test_concave(SkCanvas* canvas, const SkPaint& paint) { | 17 void test_concave(SkCanvas* canvas, const SkPaint& paint) { |
17 SkPath path; | 18 SkPath path; |
18 canvas->translate(0, 0); | 19 canvas->translate(0, 0); |
19 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); | 20 path.moveTo(SkIntToScalar(20), SkIntToScalar(20)); |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 test_coincident_edges_3(canvas, paint); | 383 test_coincident_edges_3(canvas, paint); |
383 test_coincident_edges_4(canvas, paint); | 384 test_coincident_edges_4(canvas, paint); |
384 } | 385 } |
385 | 386 |
386 private: | 387 private: |
387 typedef skiagm::GM INHERITED; | 388 typedef skiagm::GM INHERITED; |
388 }; | 389 }; |
389 | 390 |
390 static skiagm::GM* F0(void*) { return new ConcavePathsGM; } | 391 static skiagm::GM* F0(void*) { return new ConcavePathsGM; } |
391 static skiagm::GMRegistry R0(F0); | 392 static skiagm::GMRegistry R0(F0); |
OLD | NEW |