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" |
11 #include "GrBatchTarget.h" | 11 #include "GrBatchTarget.h" |
12 #include "GrBufferAllocPool.h" | 12 #include "GrBufferAllocPool.h" |
13 #include "GrContext.h" | 13 #include "GrContext.h" |
14 #include "GrDefaultGeoProcFactory.h" | 14 #include "GrDefaultGeoProcFactory.h" |
15 #include "GrDrawTargetCaps.h" | 15 #include "GrDrawTargetCaps.h" |
16 #include "GrGpu.h" | 16 #include "GrGpu.h" |
17 #include "GrIndexBuffer.h" | 17 #include "GrIndexBuffer.h" |
18 #include "GrPathUtils.h" | 18 #include "GrPathUtils.h" |
19 #include "GrPipelineBuilder.h" | 19 #include "GrPipelineBuilder.h" |
20 #include "GrProcessor.h" | 20 #include "GrProcessor.h" |
| 21 #include "GrVertexBuffer.h" |
21 #include "SkGeometry.h" | 22 #include "SkGeometry.h" |
22 #include "SkStroke.h" | 23 #include "SkStroke.h" |
23 #include "SkTemplates.h" | 24 #include "SkTemplates.h" |
24 | 25 |
25 #include "effects/GrBezierEffect.h" | 26 #include "effects/GrBezierEffect.h" |
26 | 27 |
27 // quadratics are rendered as 5-sided polys in order to bound the | 28 // quadratics are rendered as 5-sided polys in order to bound the |
28 // AA stroke around the center-curve. See comments in push_quad_index_buffer and | 29 // AA stroke around the center-curve. See comments in push_quad_index_buffer and |
29 // bloat_quad. Quadratics and conics share an index buffer | 30 // bloat_quad. Quadratics and conics share an index buffer |
30 | 31 |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 geometry.fPath = path; | 1060 geometry.fPath = path; |
1060 SkDEBUGCODE(geometry.fDevBounds = devRect;) | 1061 SkDEBUGCODE(geometry.fDevBounds = devRect;) |
1061 geometry.fDevClipBounds = devClipBounds; | 1062 geometry.fDevClipBounds = devClipBounds; |
1062 | 1063 |
1063 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf
fer, | 1064 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf
fer, |
1064 fQuadsIndexBuffer)); | 1065 fQuadsIndexBuffer)); |
1065 target->drawBatch(pipelineBuilder, batch, &devRect); | 1066 target->drawBatch(pipelineBuilder, batch, &devRect); |
1066 | 1067 |
1067 return true; | 1068 return true; |
1068 } | 1069 } |
OLD | NEW |