OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #ifndef GrProcessorUnitTest_DEFINED | 8 #ifndef GrProcessorUnitTest_DEFINED |
9 #define GrProcessorUnitTest_DEFINED | 9 #define GrProcessorUnitTest_DEFINED |
10 | 10 |
| 11 #include "../private/SkTArray.h" |
11 #include "GrTestUtils.h" | 12 #include "GrTestUtils.h" |
12 #include "SkTArray.h" | |
13 #include "SkTypes.h" | 13 #include "SkTypes.h" |
14 | 14 |
15 class SkMatrix; | 15 class SkMatrix; |
16 class GrCaps; | 16 class GrCaps; |
17 class GrContext; | 17 class GrContext; |
18 class GrRenderTarget; | 18 class GrRenderTarget; |
19 struct GrProcessorTestData; | 19 struct GrProcessorTestData; |
20 | 20 |
21 namespace GrProcessorUnitTest { | 21 namespace GrProcessorUnitTest { |
22 | 22 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 #define GR_DEFINE_XP_FACTORY_TEST(X) | 144 #define GR_DEFINE_XP_FACTORY_TEST(X) |
145 | 145 |
146 // The unit test relies on static initializers. Just declare the TestCreate func
tion so that | 146 // The unit test relies on static initializers. Just declare the TestCreate func
tion so that |
147 // its definitions will compile. | 147 // its definitions will compile. |
148 #define GR_DECLARE_GEOMETRY_PROCESSOR_TEST
\ | 148 #define GR_DECLARE_GEOMETRY_PROCESSOR_TEST
\ |
149 static const GrGeometryProcessor* TestCreate(GrProcessorTestData*) | 149 static const GrGeometryProcessor* TestCreate(GrProcessorTestData*) |
150 #define GR_DEFINE_GEOMETRY_PROCESSOR_TEST(X) | 150 #define GR_DEFINE_GEOMETRY_PROCESSOR_TEST(X) |
151 | 151 |
152 #endif // !SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 152 #endif // !SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
153 #endif | 153 #endif |
OLD | NEW |