| 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 "GrAAHairLinePathRenderer.h" | 8 #include "GrAAHairLinePathRenderer.h" |
| 9 | 9 |
| 10 #include "GrBatch.h" | 10 #include "GrBatch.h" |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 | 806 |
| 807 // Setup geometry processors for worst case | 807 // Setup geometry processors for worst case |
| 808 uint32_t gpFlags = GrDefaultGeoProcFactory::kPosition_GPType | | 808 uint32_t gpFlags = GrDefaultGeoProcFactory::kPosition_GPType | |
| 809 GrDefaultGeoProcFactory::kCoverage_GPType; | 809 GrDefaultGeoProcFactory::kCoverage_GPType; |
| 810 | 810 |
| 811 SkAutoTUnref<const GrGeometryProcessor> lineGP( | 811 SkAutoTUnref<const GrGeometryProcessor> lineGP( |
| 812 GrDefaultGeoProcFactory::Create(gpFlags, | 812 GrDefaultGeoProcFactory::Create(gpFlags, |
| 813 this->color(), | 813 this->color(), |
| 814 *geometryProcessorViewM, | 814 *geometryProcessorViewM, |
| 815 *geometryProcessorLocalM, | 815 *geometryProcessorLocalM, |
| 816 false, | |
| 817 this->coverage())); | 816 this->coverage())); |
| 818 | 817 |
| 819 SkAutoTUnref<const GrGeometryProcessor> quadGP( | 818 SkAutoTUnref<const GrGeometryProcessor> quadGP( |
| 820 GrQuadEffect::Create(this->color(), | 819 GrQuadEffect::Create(this->color(), |
| 821 *geometryProcessorViewM, | 820 *geometryProcessorViewM, |
| 822 kHairlineAA_GrProcessorEdgeType, | 821 kHairlineAA_GrProcessorEdgeType, |
| 823 batchTarget->caps(), | 822 batchTarget->caps(), |
| 824 *geometryProcessorLocalM, | 823 *geometryProcessorLocalM, |
| 825 this->coverage())); | 824 this->coverage())); |
| 826 | 825 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 GrColor color = GrRandomColor(random); | 1012 GrColor color = GrRandomColor(random); |
| 1014 SkMatrix viewMatrix = GrTest::TestMatrix(random); | 1013 SkMatrix viewMatrix = GrTest::TestMatrix(random); |
| 1015 GrStrokeInfo stroke(SkStrokeRec::kHairline_InitStyle); | 1014 GrStrokeInfo stroke(SkStrokeRec::kHairline_InitStyle); |
| 1016 SkPath path = GrTest::TestPath(random); | 1015 SkPath path = GrTest::TestPath(random); |
| 1017 SkIRect devClipBounds; | 1016 SkIRect devClipBounds; |
| 1018 devClipBounds.setEmpty(); | 1017 devClipBounds.setEmpty(); |
| 1019 return create_hairline_batch(color, viewMatrix, path, stroke, devClipBounds)
; | 1018 return create_hairline_batch(color, viewMatrix, path, stroke, devClipBounds)
; |
| 1020 } | 1019 } |
| 1021 | 1020 |
| 1022 #endif | 1021 #endif |
| OLD | NEW |