| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 /** | 110 /** |
| 111 * Draws path into the stencil buffer. The fill must be either even/odd or | 111 * Draws path into the stencil buffer. The fill must be either even/odd or |
| 112 * winding (not inverse or hairline). It will respect the HW antialias flag | 112 * winding (not inverse or hairline). It will respect the HW antialias flag |
| 113 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve
r have an inverse | 113 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve
r have an inverse |
| 114 * fill with stencil path | 114 * fill with stencil path |
| 115 */ | 115 */ |
| 116 void stencilPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, const
GrPath*, | 116 void stencilPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, const
GrPath*, |
| 117 GrPathRendering::FillType); | 117 GrPathRendering::FillType); |
| 118 | 118 |
| 119 /** | 119 /** |
| 120 * Draws a path batch. Fill must not be a hairline. It will respect the HW a
ntialias flag on | |
| 121 * the GrPipelineBuilder (if possible in the 3D API). This needs to be separ
ate from drawBatch | |
| 122 * because we install path stencil settings late. | |
| 123 * | |
| 124 * TODO: Figure out a better model that allows us to roll this method into d
rawBatch. | |
| 125 */ | |
| 126 void drawPathBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawPathBatch
Base* batch); | |
| 127 | |
| 128 /** | |
| 129 * Clear the passed in render target. Ignores the GrPipelineBuilder and clip
. Clears the whole | 120 * Clear the passed in render target. Ignores the GrPipelineBuilder and clip
. Clears the whole |
| 130 * thing if rect is nullptr, otherwise just the rect. If canIgnoreRect is se
t then the entire | 121 * thing if rect is nullptr, otherwise just the rect. If canIgnoreRect is se
t then the entire |
| 131 * render target can be optionally cleared. | 122 * render target can be optionally cleared. |
| 132 */ | 123 */ |
| 133 void clear(const SkIRect* rect, | 124 void clear(const SkIRect* rect, |
| 134 GrColor color, | 125 GrColor color, |
| 135 bool canIgnoreRect, | 126 bool canIgnoreRect, |
| 136 GrRenderTarget* renderTarget); | 127 GrRenderTarget* renderTarget); |
| 137 | 128 |
| 138 /** Discards the contents render target. */ | 129 /** Discards the contents render target. */ |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 GrRenderTarget* fRenderTarget; | 246 GrRenderTarget* fRenderTarget; |
| 256 | 247 |
| 257 bool fDrawBatchBounds; | 248 bool fDrawBatchBounds; |
| 258 int fMaxBatchLookback; | 249 int fMaxBatchLookback; |
| 259 int fMaxBatchLookahead; | 250 int fMaxBatchLookahead; |
| 260 | 251 |
| 261 typedef SkRefCnt INHERITED; | 252 typedef SkRefCnt INHERITED; |
| 262 }; | 253 }; |
| 263 | 254 |
| 264 #endif | 255 #endif |
| OLD | NEW |