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 #include "Test.h" | 8 #include "Test.h" |
9 // This is a GPU-backend specific test | 9 // This is a GPU-backend specific test |
10 #if SK_SUPPORT_GPU | 10 #if SK_SUPPORT_GPU |
11 #include "GrMemoryPool.h" | 11 #include "GrMemoryPool.h" |
| 12 #include "SkInstCnt.h" |
12 #include "SkRandom.h" | 13 #include "SkRandom.h" |
13 #include "SkTDArray.h" | 14 #include "SkTDArray.h" |
14 #include "SkTemplates.h" | 15 #include "SkTemplates.h" |
15 #include "SkInstCnt.h" | |
16 | 16 |
17 // A is the top of an inheritance tree of classes that overload op new and | 17 // A is the top of an inheritance tree of classes that overload op new and |
18 // and delete to use a GrMemoryPool. The objects have values of different types | 18 // and delete to use a GrMemoryPool. The objects have values of different types |
19 // that can be set and checked. | 19 // that can be set and checked. |
20 class A { | 20 class A { |
21 public: | 21 public: |
22 A() {}; | 22 A() {}; |
23 virtual void setValues(int v) { | 23 virtual void setValues(int v) { |
24 fChar = static_cast<char>(v); | 24 fChar = static_cast<char>(v); |
25 } | 25 } |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 delete rec.fInstance; | 233 delete rec.fInstance; |
234 } | 234 } |
235 #if SK_ENABLE_INST_COUNT | 235 #if SK_ENABLE_INST_COUNT |
236 REPORTER_ASSERT(reporter, !A::GetInstanceCount()); | 236 REPORTER_ASSERT(reporter, !A::GetInstanceCount()); |
237 #endif | 237 #endif |
238 } | 238 } |
239 } | 239 } |
240 } | 240 } |
241 | 241 |
242 #endif | 242 #endif |
OLD | NEW |