| 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 GrInOrderCommandBuilder_DEFINED | 8 #ifndef GrInOrderCommandBuilder_DEFINED |
| 9 #define GrInOrderCommandBuilder_DEFINED | 9 #define GrInOrderCommandBuilder_DEFINED |
| 10 | 10 |
| 11 #include "GrCommandBuilder.h" | 11 #include "GrCommandBuilder.h" |
| 12 | 12 |
| 13 class GrInOrderCommandBuilder : public GrCommandBuilder { | 13 class GrInOrderCommandBuilder : public GrCommandBuilder { |
| 14 public: | 14 public: |
| 15 typedef GrCommandBuilder::Cmd Cmd; | 15 typedef GrCommandBuilder::Cmd Cmd; |
| 16 typedef GrCommandBuilder::State State; | 16 typedef GrCommandBuilder::State State; |
| 17 | 17 |
| 18 GrInOrderCommandBuilder(GrGpu* gpu, | 18 GrInOrderCommandBuilder(GrGpu* gpu) : INHERITED(gpu) { } |
| 19 GrVertexBufferAllocPool* vertexPool, | |
| 20 GrIndexBufferAllocPool* indexPool) | |
| 21 : INHERITED(gpu, vertexPool, indexPool) { | |
| 22 } | |
| 23 | 19 |
| 24 Cmd* recordDrawBatch(State*, GrBatch*) override; | 20 Cmd* recordDrawBatch(State*, GrBatch*) override; |
| 25 Cmd* recordStencilPath(const GrPipelineBuilder&, | 21 Cmd* recordStencilPath(const GrPipelineBuilder&, |
| 26 const GrPathProcessor*, | 22 const GrPathProcessor*, |
| 27 const GrPath*, | 23 const GrPath*, |
| 28 const GrScissorState&, | 24 const GrScissorState&, |
| 29 const GrStencilSettings&) override; | 25 const GrStencilSettings&) override; |
| 30 Cmd* recordDrawPath(State*, | 26 Cmd* recordDrawPath(State*, |
| 31 const GrPathProcessor*, | 27 const GrPathProcessor*, |
| 32 const GrPath*, | 28 const GrPath*, |
| 33 const GrStencilSettings&) override; | 29 const GrStencilSettings&) override; |
| 34 Cmd* recordDrawPaths(State*, | 30 Cmd* recordDrawPaths(State*, |
| 35 GrInOrderDrawBuffer*, | 31 GrInOrderDrawBuffer*, |
| 36 const GrPathProcessor*, | 32 const GrPathProcessor*, |
| 37 const GrPathRange*, | 33 const GrPathRange*, |
| 38 const void*, | 34 const void*, |
| 39 GrDrawTarget::PathIndexType, | 35 GrDrawTarget::PathIndexType, |
| 40 const float transformValues[], | 36 const float transformValues[], |
| 41 GrDrawTarget::PathTransformType , | 37 GrDrawTarget::PathTransformType , |
| 42 int, | 38 int, |
| 43 const GrStencilSettings&, | 39 const GrStencilSettings&, |
| 44 const GrDrawTarget::PipelineInfo&) override; | 40 const GrDrawTarget::PipelineInfo&) override; |
| 45 | 41 |
| 46 private: | 42 private: |
| 47 typedef GrCommandBuilder INHERITED; | 43 typedef GrCommandBuilder INHERITED; |
| 48 | 44 |
| 49 }; | 45 }; |
| 50 | 46 |
| 51 #endif | 47 #endif |
| OLD | NEW |