OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "GrDefaultPathRenderer.h" | 8 #include "GrDefaultPathRenderer.h" |
9 | 9 |
10 #include "GrBatchFlushState.h" | 10 #include "GrBatchFlushState.h" |
11 #include "GrBatchTest.h" | 11 #include "GrBatchTest.h" |
12 #include "GrContext.h" | 12 #include "GrContext.h" |
13 #include "GrDefaultGeoProcFactory.h" | 13 #include "GrDefaultGeoProcFactory.h" |
| 14 #include "GrFixedClip.h" |
14 #include "GrMesh.h" | 15 #include "GrMesh.h" |
15 #include "GrPathUtils.h" | 16 #include "GrPathUtils.h" |
16 #include "GrPipelineBuilder.h" | 17 #include "GrPipelineBuilder.h" |
17 #include "SkGeometry.h" | 18 #include "SkGeometry.h" |
18 #include "SkString.h" | 19 #include "SkString.h" |
19 #include "SkStrokeRec.h" | 20 #include "SkStrokeRec.h" |
20 #include "SkTLazy.h" | 21 #include "SkTLazy.h" |
21 #include "SkTraceEvent.h" | 22 #include "SkTraceEvent.h" |
22 | 23 |
23 #include "batches/GrRectBatchFactory.h" | 24 #include "batches/GrRectBatchFactory.h" |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 SkRect bounds = path.getBounds(); | 629 SkRect bounds = path.getBounds(); |
629 SkScalar tol = GrPathUtils::kDefaultTolerance; | 630 SkScalar tol = GrPathUtils::kDefaultTolerance; |
630 SkScalar srcSpaceTol = GrPathUtils::scaleToleranceToSrc(tol, viewMatrix, bou
nds); | 631 SkScalar srcSpaceTol = GrPathUtils::scaleToleranceToSrc(tol, viewMatrix, bou
nds); |
631 | 632 |
632 viewMatrix.mapRect(&bounds); | 633 viewMatrix.mapRect(&bounds); |
633 uint8_t coverage = GrRandomCoverage(random); | 634 uint8_t coverage = GrRandomCoverage(random); |
634 return new DefaultPathBatch(color, path, srcSpaceTol, coverage, viewMatrix,
true, bounds); | 635 return new DefaultPathBatch(color, path, srcSpaceTol, coverage, viewMatrix,
true, bounds); |
635 } | 636 } |
636 | 637 |
637 #endif | 638 #endif |
OLD | NEW |