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