OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkPath.h" |
9 #include "SkRandom.h" | 10 #include "SkRandom.h" |
10 #include "SkRRect.h" | 11 #include "SkRRect.h" |
11 | 12 |
12 namespace skiagm { | 13 namespace skiagm { |
13 | 14 |
14 // Test out various combinations of nested rects, ovals and rrects. | 15 // Test out various combinations of nested rects, ovals and rrects. |
15 class NestedGM : public GM { | 16 class NestedGM : public GM { |
16 public: | 17 public: |
17 NestedGM(bool doAA, bool flipped) : fDoAA(doAA), fFlipped(flipped) { | 18 NestedGM(bool doAA, bool flipped) : fDoAA(doAA), fFlipped(flipped) { |
18 this->setBGColor(sk_tool_utils::color_to_565(0xFFDDDDDD)); | 19 this->setBGColor(sk_tool_utils::color_to_565(0xFFDDDDDD)); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 }; | 133 }; |
133 | 134 |
134 /////////////////////////////////////////////////////////////////////////////// | 135 /////////////////////////////////////////////////////////////////////////////// |
135 | 136 |
136 DEF_GM( return new NestedGM(/* doAA = */ true, /* flipped = */ false); ) | 137 DEF_GM( return new NestedGM(/* doAA = */ true, /* flipped = */ false); ) |
137 DEF_GM( return new NestedGM(/* doAA = */ false, /* flipped = */ false); ) | 138 DEF_GM( return new NestedGM(/* doAA = */ false, /* flipped = */ false); ) |
138 DEF_GM( return new NestedGM(/* doAA = */ true, /* flipped = */ true); ) | 139 DEF_GM( return new NestedGM(/* doAA = */ true, /* flipped = */ true); ) |
139 DEF_GM( return new NestedGM(/* doAA = */ false, /* flipped = */ true); ) | 140 DEF_GM( return new NestedGM(/* doAA = */ false, /* flipped = */ true); ) |
140 | 141 |
141 } | 142 } |
OLD | NEW |