| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrAALinearizingConvexPathRenderer.h" | 9 #include "GrAALinearizingConvexPathRenderer.h" |
| 10 | 10 |
| 11 #include "GrAAConvexTessellator.h" | 11 #include "GrAAConvexTessellator.h" |
| 12 #include "GrBatch.h" | |
| 13 #include "GrBatchTarget.h" | 12 #include "GrBatchTarget.h" |
| 14 #include "GrBatchTest.h" | 13 #include "GrBatchTest.h" |
| 15 #include "GrContext.h" | 14 #include "GrContext.h" |
| 16 #include "GrDefaultGeoProcFactory.h" | 15 #include "GrDefaultGeoProcFactory.h" |
| 17 #include "GrGeometryProcessor.h" | 16 #include "GrGeometryProcessor.h" |
| 18 #include "GrInvariantOutput.h" | 17 #include "GrInvariantOutput.h" |
| 19 #include "GrPathUtils.h" | 18 #include "GrPathUtils.h" |
| 20 #include "GrProcessor.h" | 19 #include "GrProcessor.h" |
| 21 #include "GrPipelineBuilder.h" | 20 #include "GrPipelineBuilder.h" |
| 22 #include "GrStrokeInfo.h" | 21 #include "GrStrokeInfo.h" |
| 23 #include "SkGeometry.h" | 22 #include "SkGeometry.h" |
| 24 #include "SkString.h" | 23 #include "SkString.h" |
| 25 #include "SkTraceEvent.h" | 24 #include "SkTraceEvent.h" |
| 26 #include "SkPathPriv.h" | 25 #include "SkPathPriv.h" |
| 26 #include "batches/GrBatch.h" |
| 27 #include "gl/GrGLProcessor.h" | 27 #include "gl/GrGLProcessor.h" |
| 28 #include "gl/GrGLGeometryProcessor.h" | 28 #include "gl/GrGLGeometryProcessor.h" |
| 29 #include "gl/builders/GrGLProgramBuilder.h" | 29 #include "gl/builders/GrGLProgramBuilder.h" |
| 30 | 30 |
| 31 static const int DEFAULT_BUFFER_SIZE = 100; | 31 static const int DEFAULT_BUFFER_SIZE = 100; |
| 32 | 32 |
| 33 // The thicker the stroke, the harder it is to produce high-quality results usin
g tessellation. For | 33 // The thicker the stroke, the harder it is to produce high-quality results usin
g tessellation. For |
| 34 // the time being, we simply drop back to software rendering above this stroke w
idth. | 34 // the time being, we simply drop back to software rendering above this stroke w
idth. |
| 35 static const SkScalar kMaxStrokeWidth = 20.0; | 35 static const SkScalar kMaxStrokeWidth = 20.0; |
| 36 | 36 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) { | 333 BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) { |
| 334 AAFlatteningConvexPathBatch::Geometry geometry; | 334 AAFlatteningConvexPathBatch::Geometry geometry; |
| 335 geometry.fColor = GrRandomColor(random); | 335 geometry.fColor = GrRandomColor(random); |
| 336 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); | 336 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); |
| 337 geometry.fPath = GrTest::TestPathConvex(random); | 337 geometry.fPath = GrTest::TestPathConvex(random); |
| 338 | 338 |
| 339 return AAFlatteningConvexPathBatch::Create(geometry); | 339 return AAFlatteningConvexPathBatch::Create(geometry); |
| 340 } | 340 } |
| 341 | 341 |
| 342 #endif | 342 #endif |
| OLD | NEW |