OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 #ifndef GrPathRenderer_DEFINED | 8 #ifndef GrPathRenderer_DEFINED |
10 #define GrPathRenderer_DEFINED | 9 #define GrPathRenderer_DEFINED |
11 | 10 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 SkDEBUGCODE(args.validate();) | 149 SkDEBUGCODE(args.validate();) |
151 #ifdef SK_DEBUG | 150 #ifdef SK_DEBUG |
152 CanDrawPathArgs canArgs; | 151 CanDrawPathArgs canArgs; |
153 canArgs.fShaderCaps = args.fTarget->caps()->shaderCaps(); | 152 canArgs.fShaderCaps = args.fTarget->caps()->shaderCaps(); |
154 canArgs.fViewMatrix = args.fViewMatrix; | 153 canArgs.fViewMatrix = args.fViewMatrix; |
155 canArgs.fPath = args.fPath; | 154 canArgs.fPath = args.fPath; |
156 canArgs.fStroke = args.fStroke; | 155 canArgs.fStroke = args.fStroke; |
157 canArgs.fAntiAlias = args.fAntiAlias; | 156 canArgs.fAntiAlias = args.fAntiAlias; |
158 | 157 |
159 canArgs.fIsStencilDisabled = args.fPipelineBuilder->getStencil().isDisab
led(); | 158 canArgs.fIsStencilDisabled = args.fPipelineBuilder->getStencil().isDisab
led(); |
160 canArgs.fIsStencilBufferMSAA = | 159 canArgs.fIsStencilBufferMSAA = |
161 args.fPipelineBuilder->getRenderTarget()->isStencilBuf
ferMultisampled(); | 160 args.fPipelineBuilder->getRenderTarget()->isStencilBuf
ferMultisampled(); |
162 SkASSERT(this->canDrawPath(canArgs)); | 161 SkASSERT(this->canDrawPath(canArgs)); |
163 SkASSERT(args.fPipelineBuilder->getStencil().isDisabled() || | 162 SkASSERT(args.fPipelineBuilder->getStencil().isDisabled() || |
164 kNoRestriction_StencilSupport == this->getStencilSupport(*args.
fPath, | 163 kNoRestriction_StencilSupport == this->getStencilSupport(*args.
fPath, |
165 *args.
fStroke)); | 164 *args.
fStroke)); |
166 #endif | 165 #endif |
167 return this->onDrawPath(args); | 166 return this->onDrawPath(args); |
168 } | 167 } |
169 | 168 |
170 /* Args to stencilPath(). | 169 /* Args to stencilPath(). |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 drawArgs.fStroke = args.fStroke; | 282 drawArgs.fStroke = args.fStroke; |
284 drawArgs.fAntiAlias = false; | 283 drawArgs.fAntiAlias = false; |
285 this->drawPath(drawArgs); | 284 this->drawPath(drawArgs); |
286 } | 285 } |
287 | 286 |
288 | 287 |
289 typedef SkRefCnt INHERITED; | 288 typedef SkRefCnt INHERITED; |
290 }; | 289 }; |
291 | 290 |
292 #endif | 291 #endif |
OLD | NEW |