OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 "GrAAConvexPathRenderer.h" | 9 #include "GrAAConvexPathRenderer.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 "GrCaps.h" | 14 #include "GrCaps.h" |
16 #include "GrContext.h" | 15 #include "GrContext.h" |
17 #include "GrDefaultGeoProcFactory.h" | 16 #include "GrDefaultGeoProcFactory.h" |
18 #include "GrGeometryProcessor.h" | 17 #include "GrGeometryProcessor.h" |
19 #include "GrInvariantOutput.h" | 18 #include "GrInvariantOutput.h" |
20 #include "GrPathUtils.h" | 19 #include "GrPathUtils.h" |
21 #include "GrProcessor.h" | 20 #include "GrProcessor.h" |
22 #include "GrPipelineBuilder.h" | 21 #include "GrPipelineBuilder.h" |
23 #include "GrStrokeInfo.h" | 22 #include "GrStrokeInfo.h" |
24 #include "SkGeometry.h" | 23 #include "SkGeometry.h" |
25 #include "SkPathPriv.h" | 24 #include "SkPathPriv.h" |
26 #include "SkString.h" | 25 #include "SkString.h" |
27 #include "SkTraceEvent.h" | 26 #include "SkTraceEvent.h" |
| 27 #include "batches/GrBatch.h" |
28 #include "gl/GrGLProcessor.h" | 28 #include "gl/GrGLProcessor.h" |
29 #include "gl/GrGLGeometryProcessor.h" | 29 #include "gl/GrGLGeometryProcessor.h" |
30 #include "gl/builders/GrGLProgramBuilder.h" | 30 #include "gl/builders/GrGLProgramBuilder.h" |
31 | 31 |
32 GrAAConvexPathRenderer::GrAAConvexPathRenderer() { | 32 GrAAConvexPathRenderer::GrAAConvexPathRenderer() { |
33 } | 33 } |
34 | 34 |
35 struct Segment { | 35 struct Segment { |
36 enum { | 36 enum { |
37 // These enum values are assumed in member functions below. | 37 // These enum values are assumed in member functions below. |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 BATCH_TEST_DEFINE(AAConvexPathBatch) { | 1015 BATCH_TEST_DEFINE(AAConvexPathBatch) { |
1016 AAConvexPathBatch::Geometry geometry; | 1016 AAConvexPathBatch::Geometry geometry; |
1017 geometry.fColor = GrRandomColor(random); | 1017 geometry.fColor = GrRandomColor(random); |
1018 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); | 1018 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); |
1019 geometry.fPath = GrTest::TestPathConvex(random); | 1019 geometry.fPath = GrTest::TestPathConvex(random); |
1020 | 1020 |
1021 return AAConvexPathBatch::Create(geometry); | 1021 return AAConvexPathBatch::Create(geometry); |
1022 } | 1022 } |
1023 | 1023 |
1024 #endif | 1024 #endif |
OLD | NEW |