| 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 onStencilPath(const GrPipelineBuilder&, | |
| 37 const GrPathProcessor*, | |
| 38 const GrPath*, | |
| 39 const GrScissorState&, | |
| 40 const GrStencilSettings&) override { | |
| 41 SkFAIL("Only batch implemented\n"); | |
| 42 } | |
| 43 void onDrawPath(const GrPathProcessor*, | 36 void onDrawPath(const GrPathProcessor*, |
| 44 const GrPath*, | 37 const GrPath*, |
| 45 const GrStencilSettings&, | 38 const GrStencilSettings&, |
| 46 const PipelineInfo&) override { | 39 const PipelineInfo&) override { |
| 47 SkFAIL("Only batch implemented\n"); | 40 SkFAIL("Only batch implemented\n"); |
| 48 } | 41 } |
| 49 void onDrawPaths(const GrPathProcessor*, | 42 void onDrawPaths(const GrPathProcessor*, |
| 50 const GrPathRange*, | 43 const GrPathRange*, |
| 51 const void* indices, | 44 const void* indices, |
| 52 PathIndexType, | 45 PathIndexType, |
| 53 const float transformValues[], | 46 const float transformValues[], |
| 54 PathTransformType, | 47 PathTransformType, |
| 55 int count, | 48 int count, |
| 56 const GrStencilSettings&, | 49 const GrStencilSettings&, |
| 57 const PipelineInfo&) override { | 50 const PipelineInfo&) override { |
| 58 SkFAIL("Only batch implemented\n"); | 51 SkFAIL("Only batch implemented\n"); |
| 59 } | 52 } |
| 60 | 53 |
| 61 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } | 54 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } |
| 62 | 55 |
| 63 uint32_t fDrawID; | 56 uint32_t fDrawID; |
| 64 | 57 |
| 65 typedef GrClipTarget INHERITED; | 58 typedef GrClipTarget INHERITED; |
| 66 }; | 59 }; |
| 67 | 60 |
| 68 #endif | 61 #endif |
| OLD | NEW |