OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2015 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef GrBatchTest_DEFINED |
| 9 #define GrBatchTest_DEFINED |
| 10 |
| 11 class GrBatch; |
| 12 class GrContext; |
| 13 class SkRandom; |
| 14 |
| 15 /* |
| 16 * This file defines some macros for testing batches, and also declares function
s / objects which |
| 17 * are generally useful for GrBatch testing |
| 18 */ |
| 19 |
| 20 // Batches should define test functions using BATCH_TEST_DEFINE. The other macr
os defined below |
| 21 // are used exclusively by the test harness. |
| 22 typedef GrBatch* (*BatchTestFunc)(SkRandom* random, GrContext* context); |
| 23 #define BATCH_TEST_DEFINE(Batch) \ |
| 24 GrBatch* Batch##__Test(SkRandom* random, GrContext* context) |
| 25 #define BATCH_TEST_EXTERN(Batch) \ |
| 26 extern GrBatch* Batch##__Test(SkRandom*, GrContext* context); |
| 27 #define BATCH_TEST_ENTRY(Batch) \ |
| 28 Batch##__Test |
| 29 |
| 30 GrBatch* GrRandomBatch(SkRandom*, GrContext*); |
| 31 |
| 32 #endif |
OLD | NEW |