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