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