OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "GrSoftwarePathRenderer.h" | 9 #include "GrSoftwarePathRenderer.h" |
10 #include "GrContext.h" | 10 #include "GrContext.h" |
11 #include "GrSWMaskHelper.h" | 11 #include "GrSWMaskHelper.h" |
| 12 #include "GrVertexBuffer.h" |
12 | 13 |
13 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
14 bool GrSoftwarePathRenderer::canDrawPath(const GrDrawTarget*, | 15 bool GrSoftwarePathRenderer::canDrawPath(const GrDrawTarget*, |
15 const GrPipelineBuilder*, | 16 const GrPipelineBuilder*, |
16 const SkMatrix& viewMatrix, | 17 const SkMatrix& viewMatrix, |
17 const SkPath&, | 18 const SkPath&, |
18 const GrStrokeInfo& stroke, | 19 const GrStrokeInfo& stroke, |
19 bool antiAlias) const { | 20 bool antiAlias) const { |
20 if (NULL == fContext) { | 21 if (NULL == fContext) { |
21 return false; | 22 return false; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, ©, color, view
Matrix, | 150 GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, ©, color, view
Matrix, |
150 devPathBounds); | 151 devPathBounds); |
151 | 152 |
152 if (path.isInverseFillType()) { | 153 if (path.isInverseFillType()) { |
153 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, devClip
Bounds, | 154 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, devClip
Bounds, |
154 devPathBounds); | 155 devPathBounds); |
155 } | 156 } |
156 | 157 |
157 return true; | 158 return true; |
158 } | 159 } |
OLD | NEW |