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" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 if (!get_path_and_clip_bounds(target, pipelineBuilder, path, viewMatrix, &de
vPathBounds, | 132 if (!get_path_and_clip_bounds(target, pipelineBuilder, path, viewMatrix, &de
vPathBounds, |
133 &devClipBounds)) { | 133 &devClipBounds)) { |
134 if (path.isInverseFillType()) { | 134 if (path.isInverseFillType()) { |
135 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, dev
ClipBounds, | 135 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, dev
ClipBounds, |
136 devPathBounds); | 136 devPathBounds); |
137 } | 137 } |
138 return true; | 138 return true; |
139 } | 139 } |
140 | 140 |
141 SkAutoTUnref<GrTexture> texture( | 141 SkAutoTUnref<GrTexture> texture( |
142 GrSWMaskHelper::DrawPathMaskToTexture(fContext, path, stroke.getStro
keRec(), | 142 GrSWMaskHelper::DrawPathMaskToTexture(fContext, path, stroke, |
143 devPathBounds, | 143 devPathBounds, |
144 antiAlias, &viewMatrix)); | 144 antiAlias, &viewMatrix)); |
145 if (NULL == texture) { | 145 if (NULL == texture) { |
146 return false; | 146 return false; |
147 } | 147 } |
148 | 148 |
149 GrPipelineBuilder copy = *pipelineBuilder; | 149 GrPipelineBuilder copy = *pipelineBuilder; |
150 GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, ©, color, view
Matrix, | 150 GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, ©, color, view
Matrix, |
151 devPathBounds); | 151 devPathBounds); |
152 | 152 |
153 if (path.isInverseFillType()) { | 153 if (path.isInverseFillType()) { |
154 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, devClip
Bounds, | 154 draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, devClip
Bounds, |
155 devPathBounds); | 155 devPathBounds); |
156 } | 156 } |
157 | 157 |
158 return true; | 158 return true; |
159 } | 159 } |
OLD | NEW |