| 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 "GrBatchTarget.h" | 10 #include "GrBatchTarget.h" |
| 11 #include "GrBatchTest.h" | 11 #include "GrBatchTest.h" |
| 12 #include "GrCaps.h" | 12 #include "GrCaps.h" |
| 13 #include "GrContext.h" | 13 #include "GrContext.h" |
| 14 #include "GrDefaultGeoProcFactory.h" | 14 #include "GrDefaultGeoProcFactory.h" |
| 15 #include "GrIndexBuffer.h" | 15 #include "GrIndexBuffer.h" |
| 16 #include "GrPathUtils.h" | 16 #include "GrPathUtils.h" |
| 17 #include "GrPipelineBuilder.h" | 17 #include "GrPipelineBuilder.h" |
| 18 #include "GrProcessor.h" | 18 #include "GrProcessor.h" |
| 19 #include "GrResourceProvider.h" | 19 #include "GrResourceProvider.h" |
| 20 #include "GrVertexBuffer.h" | 20 #include "GrVertexBuffer.h" |
| 21 #include "SkGeometry.h" | 21 #include "SkGeometry.h" |
| 22 #include "SkStroke.h" | 22 #include "SkStroke.h" |
| 23 #include "SkTemplates.h" | 23 #include "SkTemplates.h" |
| 24 | 24 |
| 25 #include "batches/GrBatch.h" | 25 #include "batches/GrVertexBatch.h" |
| 26 | 26 |
| 27 #include "effects/GrBezierEffect.h" | 27 #include "effects/GrBezierEffect.h" |
| 28 | 28 |
| 29 #define PREALLOC_PTARRAY(N) SkSTArray<(N),SkPoint, true> | 29 #define PREALLOC_PTARRAY(N) SkSTArray<(N),SkPoint, true> |
| 30 | 30 |
| 31 // quadratics are rendered as 5-sided polys in order to bound the | 31 // quadratics are rendered as 5-sided polys in order to bound the |
| 32 // AA stroke around the center-curve. See comments in push_quad_index_buffer and | 32 // AA stroke around the center-curve. See comments in push_quad_index_buffer and |
| 33 // bloat_quad. Quadratics and conics share an index buffer | 33 // bloat_quad. Quadratics and conics share an index buffer |
| 34 | 34 |
| 35 // lines are rendered as: | 35 // lines are rendered as: |
| (...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 GrColor color = GrRandomColor(random); | 991 GrColor color = GrRandomColor(random); |
| 992 SkMatrix viewMatrix = GrTest::TestMatrix(random); | 992 SkMatrix viewMatrix = GrTest::TestMatrix(random); |
| 993 GrStrokeInfo stroke(SkStrokeRec::kHairline_InitStyle); | 993 GrStrokeInfo stroke(SkStrokeRec::kHairline_InitStyle); |
| 994 SkPath path = GrTest::TestPath(random); | 994 SkPath path = GrTest::TestPath(random); |
| 995 SkIRect devClipBounds; | 995 SkIRect devClipBounds; |
| 996 devClipBounds.setEmpty(); | 996 devClipBounds.setEmpty(); |
| 997 return create_hairline_batch(color, viewMatrix, path, stroke, devClipBounds)
; | 997 return create_hairline_batch(color, viewMatrix, path, stroke, devClipBounds)
; |
| 998 } | 998 } |
| 999 | 999 |
| 1000 #endif | 1000 #endif |
| OLD | NEW |