| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 virtual ~GrCommandBuilder() {} | 22 virtual ~GrCommandBuilder() {} |
| 23 | 23 |
| 24 void reset() { fCommands.reset(); } | 24 void reset() { fCommands.reset(); } |
| 25 void flush(GrBufferedDrawTarget* bufferedDrawTarget) { fCommands.flush(buffe
redDrawTarget); } | 25 void flush(GrBufferedDrawTarget* bufferedDrawTarget) { fCommands.flush(buffe
redDrawTarget); } |
| 26 | 26 |
| 27 virtual Cmd* recordClearStencilClip(const SkIRect& rect, | 27 virtual Cmd* recordClearStencilClip(const SkIRect& rect, |
| 28 bool insideClip, | 28 bool insideClip, |
| 29 GrRenderTarget* renderTarget); | 29 GrRenderTarget* renderTarget); |
| 30 virtual Cmd* recordDiscard(GrRenderTarget*); | 30 virtual Cmd* recordDiscard(GrRenderTarget*); |
| 31 virtual Cmd* recordDrawBatch(GrBatch*, const GrCaps&) = 0; | 31 virtual Cmd* recordDrawBatch(GrDrawBatch*, const GrCaps&) = 0; |
| 32 virtual Cmd* recordStencilPath(const GrPipelineBuilder&, | 32 virtual Cmd* recordStencilPath(const GrPipelineBuilder&, |
| 33 const GrPathProcessor*, | 33 const GrPathProcessor*, |
| 34 const GrPath*, | 34 const GrPath*, |
| 35 const GrScissorState&, | 35 const GrScissorState&, |
| 36 const GrStencilSettings&) = 0; | 36 const GrStencilSettings&) = 0; |
| 37 virtual Cmd* recordDrawPath(State*, | 37 virtual Cmd* recordDrawPath(State*, |
| 38 const GrPathProcessor*, | 38 const GrPathProcessor*, |
| 39 const GrPath*, | 39 const GrPath*, |
| 40 const GrStencilSettings&) = 0; | 40 const GrStencilSettings&) = 0; |
| 41 virtual Cmd* recordDrawPaths(State*, | 41 virtual Cmd* recordDrawPaths(State*, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 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 |