| 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 GrCommandBuilder_DEFINED | 8 #ifndef GrCommandBuilder_DEFINED |
| 9 #define GrCommandBuilder_DEFINED | 9 #define GrCommandBuilder_DEFINED |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 GrBufferedDrawTarget*, | 42 GrBufferedDrawTarget*, |
| 43 const GrPathProcessor*, | 43 const GrPathProcessor*, |
| 44 const GrPathRange*, | 44 const GrPathRange*, |
| 45 const void*, | 45 const void*, |
| 46 GrDrawTarget::PathIndexType, | 46 GrDrawTarget::PathIndexType, |
| 47 const float transformValues[], | 47 const float transformValues[], |
| 48 GrDrawTarget::PathTransformType , | 48 GrDrawTarget::PathTransformType , |
| 49 int, | 49 int, |
| 50 const GrStencilSettings&, | 50 const GrStencilSettings&, |
| 51 const GrDrawTarget::PipelineInfo&) = 0; | 51 const GrDrawTarget::PipelineInfo&) = 0; |
| 52 virtual Cmd* recordClear(const SkIRect* rect, | 52 virtual Cmd* recordClear(const SkIRect& rect, |
| 53 GrColor, | 53 GrColor, |
| 54 bool canIgnoreRect, | |
| 55 GrRenderTarget*); | 54 GrRenderTarget*); |
| 56 virtual Cmd* recordCopySurface(GrSurface* dst, | 55 virtual Cmd* recordCopySurface(GrSurface* dst, |
| 57 GrSurface* src, | 56 GrSurface* src, |
| 58 const SkIRect& srcRect, | 57 const SkIRect& srcRect, |
| 59 const SkIPoint& dstPoint); | 58 const SkIPoint& dstPoint); |
| 60 virtual Cmd* recordXferBarrierIfNecessary(const GrPipeline&, const GrCaps&); | 59 virtual Cmd* recordXferBarrierIfNecessary(const GrPipeline&, const GrCaps&); |
| 61 | 60 |
| 62 protected: | 61 protected: |
| 63 typedef GrTargetCommands::DrawBatch DrawBatch; | 62 typedef GrTargetCommands::DrawBatch DrawBatch; |
| 64 typedef GrTargetCommands::StencilPath StencilPath; | 63 typedef GrTargetCommands::StencilPath StencilPath; |
| 65 typedef GrTargetCommands::DrawPath DrawPath; | 64 typedef GrTargetCommands::DrawPath DrawPath; |
| 66 typedef GrTargetCommands::DrawPaths DrawPaths; | 65 typedef GrTargetCommands::DrawPaths DrawPaths; |
| 67 typedef GrTargetCommands::Clear Clear; | 66 typedef GrTargetCommands::Clear Clear; |
| 68 typedef GrTargetCommands::ClearStencilClip ClearStencilClip; | 67 typedef GrTargetCommands::ClearStencilClip ClearStencilClip; |
| 69 typedef GrTargetCommands::CopySurface CopySurface; | 68 typedef GrTargetCommands::CopySurface CopySurface; |
| 70 typedef GrTargetCommands::XferBarrier XferBarrier; | 69 typedef GrTargetCommands::XferBarrier XferBarrier; |
| 71 | 70 |
| 72 GrCommandBuilder(GrGpu* gpu) : fCommands(gpu) {} | 71 GrCommandBuilder(GrGpu* gpu) : fCommands(gpu) {} |
| 73 | 72 |
| 74 GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); } | 73 GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); } |
| 75 GrBatchTarget* batchTarget() { return fCommands.batchTarget(); } | 74 GrBatchTarget* batchTarget() { return fCommands.batchTarget(); } |
| 76 | 75 |
| 77 private: | 76 private: |
| 78 GrTargetCommands fCommands; | 77 GrTargetCommands fCommands; |
| 79 | 78 |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 #endif | 81 #endif |
| OLD | NEW |