| 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 GrBatch_DEFINED | 8 #ifndef GrBatch_DEFINED |
| 9 #define GrBatch_DEFINED | 9 #define GrBatch_DEFINED |
| 10 | 10 |
| 11 #include <new> | 11 #include <new> |
| 12 #include "GrBatchTarget.h" | 12 #include "GrBatchTarget.h" |
| 13 #include "GrGeometryProcessor.h" | 13 #include "GrGeometryProcessor.h" |
| 14 #include "GrVertices.h" | 14 #include "GrVertices.h" |
| 15 #include "SkRefCnt.h" | 15 #include "SkRefCnt.h" |
| 16 #include "SkThread.h" | 16 #include "SkThread.h" |
| 17 #include "SkTypes.h" | 17 #include "SkTypes.h" |
| 18 | 18 |
| 19 class GrGpu; | 19 class GrGpu; |
| 20 class GrIndexBufferAllocPool; | |
| 21 class GrPipeline; | 20 class GrPipeline; |
| 22 class GrVertexBufferAllocPool; | |
| 23 | 21 |
| 24 struct GrInitInvariantOutput; | 22 struct GrInitInvariantOutput; |
| 25 | 23 |
| 26 /* | 24 /* |
| 27 * GrBatch is the base class for all Ganesh deferred geometry generators. To fa
cilitate | 25 * GrBatch is the base class for all Ganesh deferred geometry generators. To fa
cilitate |
| 28 * reorderable batching, Ganesh does not generate geometry inline with draw call
s. Instead, it | 26 * reorderable batching, Ganesh does not generate geometry inline with draw call
s. Instead, it |
| 29 * captures the arguments to the draw and then generates the geometry on demand.
This gives GrBatch | 27 * captures the arguments to the draw and then generates the geometry on demand.
This gives GrBatch |
| 30 * subclasses complete freedom to decide how / what they can batch. | 28 * subclasses complete freedom to decide how / what they can batch. |
| 31 * | 29 * |
| 32 * Batches are created when GrContext processes a draw call. Batches of the same
subclass may be | 30 * Batches are created when GrContext processes a draw call. Batches of the same
subclass may be |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 static int32_t gCurrBatchClassID; | 173 static int32_t gCurrBatchClassID; |
| 176 | 174 |
| 177 SkDEBUGCODE(bool fUsed;) | 175 SkDEBUGCODE(bool fUsed;) |
| 178 | 176 |
| 179 int fNumberOfDraws; | 177 int fNumberOfDraws; |
| 180 | 178 |
| 181 typedef SkRefCnt INHERITED; | 179 typedef SkRefCnt INHERITED; |
| 182 }; | 180 }; |
| 183 | 181 |
| 184 #endif | 182 #endif |
| OLD | NEW |