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; | |
17 | 16 |
18 GrReorderCommandBuilder() : INHERITED() {} | 17 GrReorderCommandBuilder() : INHERITED() {} |
19 | 18 |
20 Cmd* recordDrawBatch(GrBatch*, const GrCaps&) override; | 19 Cmd* recordDrawBatch(GrBatch*, const GrCaps&) override; |
21 | 20 |
22 Cmd* recordDrawPaths(State*, | |
23 GrBufferedDrawTarget*, | |
24 const GrPathProcessor*, | |
25 const GrPathRange*, | |
26 const void*, | |
27 GrDrawTarget::PathIndexType, | |
28 const float transformValues[], | |
29 GrDrawTarget::PathTransformType , | |
30 int, | |
31 const GrStencilSettings&, | |
32 const GrPipelineOptimizations&) override { | |
33 SkFAIL("Unsupported\n"); | |
34 return nullptr; | |
35 } | |
36 | |
37 private: | 21 private: |
38 typedef GrCommandBuilder INHERITED; | 22 typedef GrCommandBuilder INHERITED; |
39 | |
40 }; | 23 }; |
41 | 24 |
42 #endif | 25 #endif |
OLD | NEW |