OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 // This is a GPU-backend specific test |
| 9 #if SK_SUPPORT_GPU |
| 10 |
8 #include "GrRedBlackTree.h" | 11 #include "GrRedBlackTree.h" |
9 #include "SkRandom.h" | 12 #include "SkRandom.h" |
10 #include "Test.h" | 13 #include "Test.h" |
11 | 14 |
12 typedef GrRedBlackTree<int> Tree; | 15 typedef GrRedBlackTree<int> Tree; |
13 | 16 |
14 DEF_TEST(GrRedBlackTreeTest, reporter) { | 17 DEF_TEST(GrRedBlackTreeTest, reporter) { |
15 Tree tree; | 18 Tree tree; |
16 | 19 |
17 SkRandom r; | 20 SkRandom r; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 } | 174 } |
172 | 175 |
173 // remove all entries | 176 // remove all entries |
174 while (!tree.empty()) { | 177 while (!tree.empty()) { |
175 tree.remove(tree.begin()); | 178 tree.remove(tree.begin()); |
176 } | 179 } |
177 | 180 |
178 // test reset on empty tree. | 181 // test reset on empty tree. |
179 tree.reset(); | 182 tree.reset(); |
180 } | 183 } |
| 184 |
| 185 #endif |
OLD | NEW |