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