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 GrImmediateDrawTarget_DEFINED | 8 #ifndef GrImmediateDrawTarget_DEFINED |
9 #define GrImmediateDrawTarget_DEFINED | 9 #define GrImmediateDrawTarget_DEFINED |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 ~GrImmediateDrawTarget() override; | 27 ~GrImmediateDrawTarget() override; |
28 | 28 |
29 protected: | 29 protected: |
30 void onDrawBatch(GrBatch*) override; | 30 void onDrawBatch(GrBatch*) override; |
31 | 31 |
32 private: | 32 private: |
33 void onReset() override; | 33 void onReset() override; |
34 void onFlush() override; | 34 void onFlush() override; |
35 | 35 |
36 void onDrawPaths(const GrPathProcessor*, | |
37 const GrPathRange*, | |
38 const void* indices, | |
39 PathIndexType, | |
40 const float transformValues[], | |
41 PathTransformType, | |
42 int count, | |
43 const GrStencilSettings&, | |
44 const PipelineInfo&) override { | |
45 SkFAIL("Only batch implemented\n"); | |
46 } | |
47 | |
48 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } | |
49 | |
50 uint32_t fDrawID; | 36 uint32_t fDrawID; |
51 | 37 |
52 typedef GrClipTarget INHERITED; | 38 typedef GrClipTarget INHERITED; |
53 }; | 39 }; |
54 | 40 |
55 #endif | 41 #endif |
OLD | NEW |