| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const GrPathRange*, | 56 const GrPathRange*, |
| 57 const void* indices, | 57 const void* indices, |
| 58 PathIndexType, | 58 PathIndexType, |
| 59 const float transformValues[], | 59 const float transformValues[], |
| 60 PathTransformType, | 60 PathTransformType, |
| 61 int count, | 61 int count, |
| 62 const GrStencilSettings&, | 62 const GrStencilSettings&, |
| 63 const PipelineInfo&) override { | 63 const PipelineInfo&) override { |
| 64 SkFAIL("Only batch implemented\n"); | 64 SkFAIL("Only batch implemented\n"); |
| 65 } | 65 } |
| 66 void onClear(const SkIRect* rect, | 66 void onClear(const SkIRect& rect, |
| 67 GrColor color, | 67 GrColor color, |
| 68 bool canIgnoreRect, | |
| 69 GrRenderTarget* renderTarget) override; | 68 GrRenderTarget* renderTarget) override; |
| 70 void onCopySurface(GrSurface* dst, | 69 void onCopySurface(GrSurface* dst, |
| 71 GrSurface* src, | 70 GrSurface* src, |
| 72 const SkIRect& srcRect, | 71 const SkIRect& srcRect, |
| 73 const SkIPoint& dstPoint) override; | 72 const SkIPoint& dstPoint) override; |
| 74 | 73 |
| 75 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } | 74 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } |
| 76 | 75 |
| 77 bool SK_WARN_UNUSED_RESULT setupPipelineAndShouldDraw(void* pipelineAddr, | 76 bool SK_WARN_UNUSED_RESULT setupPipelineAndShouldDraw(void* pipelineAddr, |
| 78 const GrDrawTarget::Pi
pelineInfo&); | 77 const GrDrawTarget::Pi
pelineInfo&); |
| 79 | 78 |
| 80 void recordXferBarrierIfNecessary(const GrPipeline*); | 79 void recordXferBarrierIfNecessary(const GrPipeline*); |
| 81 | 80 |
| 82 GrBatchTarget fBatchTarget; | 81 GrBatchTarget fBatchTarget; |
| 83 uint32_t fDrawID; | 82 uint32_t fDrawID; |
| 84 | 83 |
| 85 typedef GrClipTarget INHERITED; | 84 typedef GrClipTarget INHERITED; |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 #endif | 87 #endif |
| OLD | NEW |