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() : INHERITED() {} | 18 GrReorderCommandBuilder() : INHERITED() {} |
19 | 19 |
20 Cmd* recordDrawBatch(GrBatch*, const GrCaps&) override; | 20 Cmd* recordDrawBatch(GrBatch*, const GrCaps&) override; |
21 Cmd* recordStencilPath(const GrPipelineBuilder&, | |
22 const GrPathProcessor*, | |
23 const GrPath*, | |
24 const GrScissorState&, | |
25 const GrStencilSettings&) override { | |
26 SkFAIL("Unsupported\n"); | |
27 return NULL; | |
28 } | |
29 | 21 |
30 Cmd* recordDrawPath(State*, | 22 Cmd* recordDrawPath(State*, |
31 const GrPathProcessor*, | 23 const GrPathProcessor*, |
32 const GrPath*, | 24 const GrPath*, |
33 const GrStencilSettings&) override { | 25 const GrStencilSettings&) override { |
34 SkFAIL("Unsupported\n"); | 26 SkFAIL("Unsupported\n"); |
35 return NULL; | 27 return NULL; |
36 } | 28 } |
37 | 29 |
38 Cmd* recordDrawPaths(State*, | 30 Cmd* recordDrawPaths(State*, |
(...skipping 10 matching lines...) Expand all Loading... |
49 SkFAIL("Unsupported\n"); | 41 SkFAIL("Unsupported\n"); |
50 return NULL; | 42 return NULL; |
51 } | 43 } |
52 | 44 |
53 private: | 45 private: |
54 typedef GrCommandBuilder INHERITED; | 46 typedef GrCommandBuilder INHERITED; |
55 | 47 |
56 }; | 48 }; |
57 | 49 |
58 #endif | 50 #endif |
OLD | NEW |