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 #include "batches/GrRectBatchFactory.h" | 13 #include "batches/GrRectBatchFactory.h" |
13 | 14 |
14 //////////////////////////////////////////////////////////////////////////////// | 15 //////////////////////////////////////////////////////////////////////////////// |
15 bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { | 16 bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { |
16 if (nullptr == fContext) { | 17 if (nullptr == fContext) { |
17 return false; | 18 return false; |
18 } | 19 } |
19 if (args.fStroke->isDashed()) { | 20 if (args.fStroke->isDashed()) { |
20 return false; | 21 return false; |
21 } | 22 } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 GrSWMaskHelper::DrawToTargetWithPathMask(texture, args.fTarget, args.fPipeli
neBuilder, | 142 GrSWMaskHelper::DrawToTargetWithPathMask(texture, args.fTarget, args.fPipeli
neBuilder, |
142 args.fColor, *args.fViewMatrix, dev
PathBounds); | 143 args.fColor, *args.fViewMatrix, dev
PathBounds); |
143 | 144 |
144 if (args.fPath->isInverseFillType()) { | 145 if (args.fPath->isInverseFillType()) { |
145 draw_around_inv_path(args.fTarget, args.fPipelineBuilder, args.fColor, *
args.fViewMatrix, | 146 draw_around_inv_path(args.fTarget, args.fPipelineBuilder, args.fColor, *
args.fViewMatrix, |
146 devClipBounds, devPathBounds); | 147 devClipBounds, devPathBounds); |
147 } | 148 } |
148 | 149 |
149 return true; | 150 return true; |
150 } | 151 } |
OLD | NEW |