| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #include "GrSoftwarePathRenderer.h" | 8 #include "GrSoftwarePathRenderer.h" |
| 9 #include "GrAuditTrail.h" | 9 #include "GrAuditTrail.h" |
| 10 #include "GrClip.h" | 10 #include "GrClip.h" |
| 11 #include "GrPipelineBuilder.h" |
| 11 #include "GrSWMaskHelper.h" | 12 #include "GrSWMaskHelper.h" |
| 12 #include "GrTextureProvider.h" | 13 #include "GrTextureProvider.h" |
| 13 #include "batches/GrRectBatchFactory.h" | 14 #include "batches/GrRectBatchFactory.h" |
| 14 | 15 |
| 15 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
| 16 bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { | 17 bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { |
| 17 // Pass on any style that applies. The caller will apply the style if a suit
able renderer is | 18 // Pass on any style that applies. The caller will apply the style if a suit
able renderer is |
| 18 // not found and try again with the new GrShape. | 19 // not found and try again with the new GrShape. |
| 19 return !args.fShape->style().applies() && SkToBool(fTexProvider); | 20 return !args.fShape->style().applies() && SkToBool(fTexProvider); |
| 20 } | 21 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 devShapeBounds); | 159 devShapeBounds); |
| 159 | 160 |
| 160 if (inverseFilled) { | 161 if (inverseFilled) { |
| 161 DrawAroundInvPath(args.fDrawContext, *args.fPaint, args.fUserStencilSett
ings, | 162 DrawAroundInvPath(args.fDrawContext, *args.fPaint, args.fUserStencilSett
ings, |
| 162 *args.fClip, | 163 *args.fClip, |
| 163 *args.fViewMatrix, devClipBounds, devShapeBounds); | 164 *args.fViewMatrix, devClipBounds, devShapeBounds); |
| 164 } | 165 } |
| 165 | 166 |
| 166 return true; | 167 return true; |
| 167 } | 168 } |
| OLD | NEW |