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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 54 bool canIgnoreRect, |
55 GrRenderTarget*); | 55 GrRenderTarget*); |
56 virtual Cmd* recordCopySurface(GrSurface* dst, | 56 virtual Cmd* recordCopySurface(GrSurface* dst, |
57 GrSurface* src, | 57 GrSurface* src, |
58 const SkIRect& srcRect, | 58 const SkIRect& srcRect, |
59 const SkIPoint& dstPoint); | 59 const SkIPoint& dstPoint); |
60 virtual Cmd* recordXferBarrierIfNecessary(const GrPipeline&, const GrDrawTar
getCaps&); | 60 virtual Cmd* recordXferBarrierIfNecessary(const GrPipeline&, const GrCaps&); |
61 | 61 |
62 protected: | 62 protected: |
63 typedef GrTargetCommands::DrawBatch DrawBatch; | 63 typedef GrTargetCommands::DrawBatch DrawBatch; |
64 typedef GrTargetCommands::StencilPath StencilPath; | 64 typedef GrTargetCommands::StencilPath StencilPath; |
65 typedef GrTargetCommands::DrawPath DrawPath; | 65 typedef GrTargetCommands::DrawPath DrawPath; |
66 typedef GrTargetCommands::DrawPaths DrawPaths; | 66 typedef GrTargetCommands::DrawPaths DrawPaths; |
67 typedef GrTargetCommands::Clear Clear; | 67 typedef GrTargetCommands::Clear Clear; |
68 typedef GrTargetCommands::ClearStencilClip ClearStencilClip; | 68 typedef GrTargetCommands::ClearStencilClip ClearStencilClip; |
69 typedef GrTargetCommands::CopySurface CopySurface; | 69 typedef GrTargetCommands::CopySurface CopySurface; |
70 typedef GrTargetCommands::XferBarrier XferBarrier; | 70 typedef GrTargetCommands::XferBarrier XferBarrier; |
71 | 71 |
72 GrCommandBuilder(GrGpu* gpu) : fCommands(gpu) {} | 72 GrCommandBuilder(GrGpu* gpu) : fCommands(gpu) {} |
73 | 73 |
74 GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); } | 74 GrTargetCommands::CmdBuffer* cmdBuffer() { return fCommands.cmdBuffer(); } |
75 GrBatchTarget* batchTarget() { return fCommands.batchTarget(); } | 75 GrBatchTarget* batchTarget() { return fCommands.batchTarget(); } |
76 | 76 |
77 private: | 77 private: |
78 GrTargetCommands fCommands; | 78 GrTargetCommands fCommands; |
79 | 79 |
80 }; | 80 }; |
81 | 81 |
82 #endif | 82 #endif |
OLD | NEW |