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