| 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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 | 829 |
| 830 // Setup geometry processors for worst case | 830 // Setup geometry processors for worst case |
| 831 uint32_t gpFlags = GrDefaultGeoProcFactory::kPosition_GPType | | 831 uint32_t gpFlags = GrDefaultGeoProcFactory::kPosition_GPType | |
| 832 GrDefaultGeoProcFactory::kCoverage_GPType; | 832 GrDefaultGeoProcFactory::kCoverage_GPType; |
| 833 | 833 |
| 834 SkAutoTUnref<const GrGeometryProcessor> lineGP( | 834 SkAutoTUnref<const GrGeometryProcessor> lineGP( |
| 835 GrDefaultGeoProcFactory::Create(gpFlags, | 835 GrDefaultGeoProcFactory::Create(gpFlags, |
| 836 this->color(), | 836 this->color(), |
| 837 *geometryProcessorViewM, | 837 *geometryProcessorViewM, |
| 838 *geometryProcessorLocalM, | 838 *geometryProcessorLocalM, |
| 839 false, |
| 839 this->coverage())); | 840 this->coverage())); |
| 840 | 841 |
| 841 SkAutoTUnref<const GrGeometryProcessor> quadGP( | 842 SkAutoTUnref<const GrGeometryProcessor> quadGP( |
| 842 GrQuadEffect::Create(this->color(), | 843 GrQuadEffect::Create(this->color(), |
| 843 *geometryProcessorViewM, | 844 *geometryProcessorViewM, |
| 844 kHairlineAA_GrProcessorEdgeType, | 845 kHairlineAA_GrProcessorEdgeType, |
| 845 batchTarget->caps(), | 846 batchTarget->caps(), |
| 846 *geometryProcessorLocalM, | 847 *geometryProcessorLocalM, |
| 847 this->coverage())); | 848 this->coverage())); |
| 848 | 849 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 geometry.fPath = path; | 1059 geometry.fPath = path; |
| 1059 SkDEBUGCODE(geometry.fDevBounds = devRect;) | 1060 SkDEBUGCODE(geometry.fDevBounds = devRect;) |
| 1060 geometry.fDevClipBounds = devClipBounds; | 1061 geometry.fDevClipBounds = devClipBounds; |
| 1061 | 1062 |
| 1062 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf
fer, | 1063 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf
fer, |
| 1063 fQuadsIndexBuffer)); | 1064 fQuadsIndexBuffer)); |
| 1064 target->drawBatch(pipelineBuilder, batch, &devRect); | 1065 target->drawBatch(pipelineBuilder, batch, &devRect); |
| 1065 | 1066 |
| 1066 return true; | 1067 return true; |
| 1067 } | 1068 } |
| OLD | NEW |