| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 /** | 102 /** |
| 103 * Gets the capabilities of the draw target. | 103 * Gets the capabilities of the draw target. |
| 104 */ | 104 */ |
| 105 const GrCaps* caps() const { return fGpu->caps(); } | 105 const GrCaps* caps() const { return fGpu->caps(); } |
| 106 | 106 |
| 107 void drawBatch(const GrPipelineBuilder&, GrDrawContext*, const GrClip&, GrDr
awBatch*); | 107 void drawBatch(const GrPipelineBuilder&, GrDrawContext*, const GrClip&, GrDr
awBatch*); |
| 108 | 108 |
| 109 void addBatch(sk_sp<GrBatch>); | 109 void addBatch(sk_sp<GrBatch>); |
| 110 | 110 |
| 111 /** | 111 /** |
| 112 * Draws path into the stencil buffer. The path's fill must be either even/o
dd or | 112 * Draws the path into user stencil bits. Upon return, all user stencil valu
es |
| 113 * winding (not inverse or hairline). It will respect the HW antialias boole
an | 113 * inside the path will be nonzero. The path's fill must be either even/odd
or |
| 114 * (if possible in the 3D API). Note, we will never have an inverse | 114 * winding (notnverse or hairline).It will respect the HW antialias boolean
(if |
| 115 * fill with stencil path | 115 * possible in the 3D API). Note, we will never have an inverse fill with |
| 116 * stencil path. |
| 116 */ | 117 */ |
| 117 void stencilPath(GrDrawContext*, | 118 void stencilPath(GrDrawContext*, |
| 118 const GrClip&, | 119 const GrClip&, |
| 119 const GrUserStencilSettings*, | |
| 120 bool useHWAA, | 120 bool useHWAA, |
| 121 const SkMatrix& viewMatrix, | 121 const SkMatrix& viewMatrix, |
| 122 const GrPath*); | 122 const GrPath*); |
| 123 | 123 |
| 124 /** Discards the contents render target. */ | 124 /** Discards the contents render target. */ |
| 125 void discard(GrRenderTarget*); | 125 void discard(GrRenderTarget*); |
| 126 | 126 |
| 127 /** | 127 /** |
| 128 * Copies a pixel rectangle from one surface to another. This call may final
ize | 128 * Copies a pixel rectangle from one surface to another. This call may final
ize |
| 129 * reserved vertex/index data (as though a draw call was made). The src pixe
ls | 129 * reserved vertex/index data (as though a draw call was made). The src pixe
ls |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 bool fDrawBatchBounds; | 231 bool fDrawBatchBounds; |
| 232 int fMaxBatchLookback; | 232 int fMaxBatchLookback; |
| 233 int fMaxBatchLookahead; | 233 int fMaxBatchLookahead; |
| 234 | 234 |
| 235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; | 235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; |
| 236 | 236 |
| 237 typedef SkRefCnt INHERITED; | 237 typedef SkRefCnt INHERITED; |
| 238 }; | 238 }; |
| 239 | 239 |
| 240 #endif | 240 #endif |
| OLD | NEW |