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 | 21 |
22 Cmd* recordDrawPath(State*, | |
23 const GrPathProcessor*, | |
24 const GrPath*, | |
25 const GrStencilSettings&) override { | |
26 SkFAIL("Unsupported\n"); | |
27 return NULL; | |
28 } | |
29 | |
30 Cmd* recordDrawPaths(State*, | 22 Cmd* recordDrawPaths(State*, |
31 GrBufferedDrawTarget*, | 23 GrBufferedDrawTarget*, |
32 const GrPathProcessor*, | 24 const GrPathProcessor*, |
33 const GrPathRange*, | 25 const GrPathRange*, |
34 const void*, | 26 const void*, |
35 GrDrawTarget::PathIndexType, | 27 GrDrawTarget::PathIndexType, |
36 const float transformValues[], | 28 const float transformValues[], |
37 GrDrawTarget::PathTransformType , | 29 GrDrawTarget::PathTransformType , |
38 int, | 30 int, |
39 const GrStencilSettings&, | 31 const GrStencilSettings&, |
40 const GrPipelineOptimizations&) override { | 32 const GrPipelineOptimizations&) override { |
41 SkFAIL("Unsupported\n"); | 33 SkFAIL("Unsupported\n"); |
42 return NULL; | 34 return NULL; |
43 } | 35 } |
44 | 36 |
45 private: | 37 private: |
46 typedef GrCommandBuilder INHERITED; | 38 typedef GrCommandBuilder INHERITED; |
47 | 39 |
48 }; | 40 }; |
49 | 41 |
50 #endif | 42 #endif |
OLD | NEW |