| 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 GrReorderCommandBuilder_DEFINED | 8 #ifndef GrReorderCommandBuilder_DEFINED |
| 9 #define GrReorderCommandBuilder_DEFINED | 9 #define GrReorderCommandBuilder_DEFINED |
| 10 | 10 |
| 11 #include "GrCommandBuilder.h" | 11 #include "GrCommandBuilder.h" |
| 12 | 12 |
| 13 class GrReorderCommandBuilder : 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 GrReorderCommandBuilder(GrGpu* gpu) : INHERITED(gpu) {} | 18 GrReorderCommandBuilder(GrGpu* gpu) : INHERITED(gpu) {} |
| 19 | 19 |
| 20 Cmd* recordDrawBatch(GrBatch*) override; | 20 Cmd* recordDrawBatch(GrBatch*, const GrCaps&) 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"); | 26 SkFAIL("Unsupported\n"); |
| 27 return NULL; | 27 return NULL; |
| 28 } | 28 } |
| 29 | 29 |
| 30 Cmd* recordDrawPath(State*, | 30 Cmd* recordDrawPath(State*, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 49 SkFAIL("Unsupported\n"); | 49 SkFAIL("Unsupported\n"); |
| 50 return NULL; | 50 return NULL; |
| 51 } | 51 } |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 typedef GrCommandBuilder INHERITED; | 54 typedef GrCommandBuilder INHERITED; |
| 55 | 55 |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif | 58 #endif |
| OLD | NEW |