| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 /** | 104 /** |
| 105 * Gets the capabilities of the draw target. | 105 * Gets the capabilities of the draw target. |
| 106 */ | 106 */ |
| 107 const GrCaps* caps() const { return fGpu->caps(); } | 107 const GrCaps* caps() const { return fGpu->caps(); } |
| 108 | 108 |
| 109 void drawBatch(const GrPipelineBuilder&, GrDrawContext*, const GrClip&, GrDr
awBatch*); | 109 void drawBatch(const GrPipelineBuilder&, GrDrawContext*, const GrClip&, GrDr
awBatch*); |
| 110 | 110 |
| 111 void addBatch(sk_sp<GrBatch>); | 111 void addBatch(sk_sp<GrBatch>); |
| 112 | 112 |
| 113 /** | 113 /** |
| 114 * Draws path into the stencil buffer. The path's fill must be either even/o
dd or | 114 * Draws the path into user stencil bits. Upon return, all user stencil valu
es |
| 115 * winding (not inverse or hairline). It will respect the HW antialias boole
an | 115 * inside the path will be nonzero. The path's fill must be either even/odd
or |
| 116 * (if possible in the 3D API). Note, we will never have an inverse | 116 * winding (notnverse or hairline).It will respect the HW antialias boolean
(if |
| 117 * fill with stencil path | 117 * possible in the 3D API). Note, we will never have an inverse fill with |
| 118 * stencil path. |
| 118 */ | 119 */ |
| 119 void stencilPath(GrDrawContext*, | 120 void stencilPath(GrDrawContext*, |
| 120 const GrClip&, | 121 const GrClip&, |
| 121 const GrUserStencilSettings*, | |
| 122 bool useHWAA, | 122 bool useHWAA, |
| 123 const SkMatrix& viewMatrix, | 123 const SkMatrix& viewMatrix, |
| 124 const GrPath*); | 124 const GrPath*); |
| 125 | 125 |
| 126 /** Clears the entire render target */ | 126 /** Clears the entire render target */ |
| 127 void fullClear(GrRenderTarget*, GrColor color); | 127 void fullClear(GrRenderTarget*, GrColor color); |
| 128 | 128 |
| 129 /** Discards the contents render target. */ | 129 /** Discards the contents render target. */ |
| 130 void discard(GrRenderTarget*); | 130 void discard(GrRenderTarget*); |
| 131 | 131 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 bool fDrawBatchBounds; | 239 bool fDrawBatchBounds; |
| 240 int fMaxBatchLookback; | 240 int fMaxBatchLookback; |
| 241 int fMaxBatchLookahead; | 241 int fMaxBatchLookahead; |
| 242 | 242 |
| 243 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; | 243 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; |
| 244 | 244 |
| 245 typedef SkRefCnt INHERITED; | 245 typedef SkRefCnt INHERITED; |
| 246 }; | 246 }; |
| 247 | 247 |
| 248 #endif | 248 #endif |
| OLD | NEW |