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 | 8 |
9 #include "gm.h" | 9 #include "gm.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
11 #include "SkPath.h" | 11 #include "SkPath.h" |
12 #include "SkRandom.h" | 12 #include "SkRandom.h" |
| 13 #include "SkRect.h" |
| 14 #include "SkRRect.h" |
13 | 15 |
14 namespace skiagm { | 16 namespace skiagm { |
15 | 17 |
16 class ComplexClip2GM : public GM { | 18 class ComplexClip2GM : public GM { |
17 public: | 19 public: |
18 enum Clip { | 20 enum Clip { |
19 kRect_Clip, | 21 kRect_Clip, |
20 kRRect_Clip, | 22 kRRect_Clip, |
21 kPath_Clip | 23 kPath_Clip |
22 }; | 24 }; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRect_Clip, false); ) | 215 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRect_Clip, false); ) |
214 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRRect_Clip, false); ) | 216 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRRect_Clip, false); ) |
215 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kPath_Clip, false); ) | 217 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kPath_Clip, false); ) |
216 | 218 |
217 // aa | 219 // aa |
218 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRect_Clip, true); ) | 220 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRect_Clip, true); ) |
219 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRRect_Clip, true); ) | 221 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kRRect_Clip, true); ) |
220 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kPath_Clip, true); ) | 222 DEF_GM( return new ComplexClip2GM(ComplexClip2GM::kPath_Clip, true); ) |
221 | 223 |
222 } | 224 } |
OLD | NEW |