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