| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
| 9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 * This plays any queued up draws to its GrGpu target. It also resets this o
bject (i.e. flushing | 61 * This plays any queued up draws to its GrGpu target. It also resets this o
bject (i.e. flushing |
| 62 * is destructive). | 62 * is destructive). |
| 63 */ | 63 */ |
| 64 void flush(); | 64 void flush(); |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * Gets the capabilities of the draw target. | 67 * Gets the capabilities of the draw target. |
| 68 */ | 68 */ |
| 69 const GrDrawTargetCaps* caps() const { return fCaps.get(); } | 69 const GrDrawTargetCaps* caps() const { return fCaps.get(); } |
| 70 | 70 |
| 71 // TODO devbounds should live on the batch | 71 void drawBatch(GrPipelineBuilder*, GrBatch*); |
| 72 void drawBatch(GrPipelineBuilder*, GrBatch*, const SkRect* devBounds = NULL)
; | |
| 73 | 72 |
| 74 /** | 73 /** |
| 75 * Draws path into the stencil buffer. The fill must be either even/odd or | 74 * Draws path into the stencil buffer. The fill must be either even/odd or |
| 76 * winding (not inverse or hairline). It will respect the HW antialias flag | 75 * winding (not inverse or hairline). It will respect the HW antialias flag |
| 77 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve
r have an inverse | 76 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve
r have an inverse |
| 78 * fill with stencil path | 77 * fill with stencil path |
| 79 */ | 78 */ |
| 80 void stencilPath(GrPipelineBuilder*, const GrPathProcessor*, const GrPath*, | 79 void stencilPath(GrPipelineBuilder*, const GrPathProcessor*, const GrPath*, |
| 81 GrPathRendering::FillType); | 80 GrPathRendering::FillType); |
| 82 | 81 |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 virtual bool setupClip(GrPipelineBuilder*, | 477 virtual bool setupClip(GrPipelineBuilder*, |
| 479 GrPipelineBuilder::AutoRestoreFragmentProcessors*, | 478 GrPipelineBuilder::AutoRestoreFragmentProcessors*, |
| 480 GrPipelineBuilder::AutoRestoreStencil*, | 479 GrPipelineBuilder::AutoRestoreStencil*, |
| 481 GrScissorState* scissorState, | 480 GrScissorState* scissorState, |
| 482 const SkRect* devBounds) override; | 481 const SkRect* devBounds) override; |
| 483 | 482 |
| 484 typedef GrDrawTarget INHERITED; | 483 typedef GrDrawTarget INHERITED; |
| 485 }; | 484 }; |
| 486 | 485 |
| 487 #endif | 486 #endif |
| OLD | NEW |