| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrBatchTest_DEFINED | 8 #ifndef GrBatchTest_DEFINED |
| 9 #define GrBatchTest_DEFINED | 9 #define GrBatchTest_DEFINED |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 // Batches should define test functions using BATCH_TEST_DEFINE. The other macr
os defined below | 24 // Batches should define test functions using BATCH_TEST_DEFINE. The other macr
os defined below |
| 25 // are used exclusively by the test harness. | 25 // are used exclusively by the test harness. |
| 26 typedef GrBatch* (*BatchTestFunc)(SkRandom* random, GrContext* context); | 26 typedef GrBatch* (*BatchTestFunc)(SkRandom* random, GrContext* context); |
| 27 #define BATCH_TEST_DEFINE(Batch) \ | 27 #define BATCH_TEST_DEFINE(Batch) \ |
| 28 GrBatch* Batch##__Test(SkRandom* random, GrContext* context) | 28 GrBatch* Batch##__Test(SkRandom* random, GrContext* context) |
| 29 #define BATCH_TEST_EXTERN(Batch) \ | 29 #define BATCH_TEST_EXTERN(Batch) \ |
| 30 extern GrBatch* Batch##__Test(SkRandom*, GrContext* context); | 30 extern GrBatch* Batch##__Test(SkRandom*, GrContext* context); |
| 31 #define BATCH_TEST_ENTRY(Batch) \ | 31 #define BATCH_TEST_ENTRY(Batch) \ |
| 32 Batch##__Test | 32 Batch##__Test |
| 33 #define BATCH_TEST_FRIEND(Batch) \ |
| 34 friend GrBatch* Batch##__Test(SkRandom* random, GrContext* context); |
| 33 | 35 |
| 34 GrBatch* GrRandomBatch(SkRandom*, GrContext*); | 36 GrBatch* GrRandomBatch(SkRandom*, GrContext*); |
| 35 | 37 |
| 36 #endif | 38 #endif |
| 37 #endif | 39 #endif |
| OLD | NEW |