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" | 12 #include "GrBatch.h" |
13 #include "GrBatchTarget.h" | 13 #include "GrBatchTarget.h" |
14 #include "GrBatchTest.h" | 14 #include "GrBatchTest.h" |
15 #include "GrContext.h" | 15 #include "GrContext.h" |
16 #include "GrDefaultGeoProcFactory.h" | 16 #include "GrDefaultGeoProcFactory.h" |
17 #include "GrGeometryProcessor.h" | 17 #include "GrGeometryProcessor.h" |
18 #include "GrInvariantOutput.h" | 18 #include "GrInvariantOutput.h" |
19 #include "GrPathUtils.h" | 19 #include "GrPathUtils.h" |
20 #include "GrProcessor.h" | 20 #include "GrProcessor.h" |
21 #include "GrPipelineBuilder.h" | 21 #include "GrPipelineBuilder.h" |
22 #include "GrStrokeInfo.h" | 22 #include "GrStrokeInfo.h" |
23 #include "SkGeometry.h" | 23 #include "SkGeometry.h" |
24 #include "SkString.h" | 24 #include "SkString.h" |
25 #include "SkTraceEvent.h" | 25 #include "SkTraceEvent.h" |
26 #include "gl/GrGLProcessor.h" | 26 #include "gl/GrGLProcessor.h" |
27 #include "gl/GrGLSL.h" | |
28 #include "gl/GrGLGeometryProcessor.h" | 27 #include "gl/GrGLGeometryProcessor.h" |
29 #include "gl/builders/GrGLProgramBuilder.h" | 28 #include "gl/builders/GrGLProgramBuilder.h" |
30 | 29 |
31 #define DEFAULT_BUFFER_SIZE 100 | 30 #define DEFAULT_BUFFER_SIZE 100 |
32 | 31 |
33 GrAALinearizingConvexPathRenderer::GrAALinearizingConvexPathRenderer() { | 32 GrAALinearizingConvexPathRenderer::GrAALinearizingConvexPathRenderer() { |
34 } | 33 } |
35 | 34 |
36 /////////////////////////////////////////////////////////////////////////////// | 35 /////////////////////////////////////////////////////////////////////////////// |
37 | 36 |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) { | 310 BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) { |
312 AAFlatteningConvexPathBatch::Geometry geometry; | 311 AAFlatteningConvexPathBatch::Geometry geometry; |
313 geometry.fColor = GrRandomColor(random); | 312 geometry.fColor = GrRandomColor(random); |
314 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); | 313 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); |
315 geometry.fPath = GrTest::TestPathConvex(random); | 314 geometry.fPath = GrTest::TestPathConvex(random); |
316 | 315 |
317 return AAFlatteningConvexPathBatch::Create(geometry); | 316 return AAFlatteningConvexPathBatch::Create(geometry); |
318 } | 317 } |
319 | 318 |
320 #endif | 319 #endif |
OLD | NEW |