| 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 30 matching lines...) Expand all Loading... |
| 41 virtual Cmd* recordDrawPaths(State*, | 41 virtual Cmd* recordDrawPaths(State*, |
| 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 GrPipelineOptimizations&) = 0; |
| 52 virtual Cmd* recordClear(const SkIRect& rect, | 52 virtual Cmd* recordClear(const SkIRect& rect, |
| 53 GrColor, | 53 GrColor, |
| 54 GrRenderTarget*); | 54 GrRenderTarget*); |
| 55 virtual Cmd* recordCopySurface(GrSurface* dst, | 55 virtual Cmd* recordCopySurface(GrSurface* dst, |
| 56 GrSurface* src, | 56 GrSurface* src, |
| 57 const SkIRect& srcRect, | 57 const SkIRect& srcRect, |
| 58 const SkIPoint& dstPoint); | 58 const SkIPoint& dstPoint); |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 typedef GrTargetCommands::DrawBatch DrawBatch; | 61 typedef GrTargetCommands::DrawBatch DrawBatch; |
| 62 typedef GrTargetCommands::StencilPath StencilPath; | 62 typedef GrTargetCommands::StencilPath StencilPath; |
| 63 typedef GrTargetCommands::DrawPath DrawPath; | 63 typedef GrTargetCommands::DrawPath DrawPath; |
| 64 typedef GrTargetCommands::DrawPaths DrawPaths; | 64 typedef GrTargetCommands::DrawPaths DrawPaths; |
| 65 typedef GrTargetCommands::Clear Clear; | 65 typedef GrTargetCommands::Clear Clear; |
| 66 typedef GrTargetCommands::ClearStencilClip ClearStencilClip; | 66 typedef GrTargetCommands::ClearStencilClip ClearStencilClip; |
| 67 typedef GrTargetCommands::CopySurface CopySurface; | 67 typedef GrTargetCommands::CopySurface CopySurface; |
| 68 | 68 |
| 69 GrCommandBuilder(GrGpu* gpu) : fCommands(gpu) {} | 69 GrCommandBuilder(GrGpu* gpu) : fCommands(gpu) {} |
| 70 | 70 |
| 71 GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); } | 71 GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); } |
| 72 GrBatchTarget* batchTarget() { return fCommands.batchTarget(); } | 72 GrBatchTarget* batchTarget() { return fCommands.batchTarget(); } |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 GrTargetCommands fCommands; | 75 GrTargetCommands fCommands; |
| 76 | 76 |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 #endif | 79 #endif |
| OLD | NEW |