OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 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 "GrAADistanceFieldPathRenderer.h" | 9 #include "GrAADistanceFieldPathRenderer.h" |
10 | 10 |
11 #include "GrBatch.h" | |
12 #include "GrBatchTarget.h" | 11 #include "GrBatchTarget.h" |
13 #include "GrBatchTest.h" | 12 #include "GrBatchTest.h" |
14 #include "GrContext.h" | 13 #include "GrContext.h" |
15 #include "GrPipelineBuilder.h" | 14 #include "GrPipelineBuilder.h" |
16 #include "GrResourceProvider.h" | 15 #include "GrResourceProvider.h" |
17 #include "GrSurfacePriv.h" | 16 #include "GrSurfacePriv.h" |
18 #include "GrSWMaskHelper.h" | 17 #include "GrSWMaskHelper.h" |
19 #include "GrTexturePriv.h" | 18 #include "GrTexturePriv.h" |
20 #include "GrVertexBuffer.h" | 19 #include "GrVertexBuffer.h" |
| 20 #include "batches/GrBatch.h" |
21 #include "effects/GrDistanceFieldGeoProc.h" | 21 #include "effects/GrDistanceFieldGeoProc.h" |
22 | 22 |
23 #include "SkDistanceFieldGen.h" | 23 #include "SkDistanceFieldGen.h" |
24 #include "SkRTConf.h" | 24 #include "SkRTConf.h" |
25 | 25 |
26 #define ATLAS_TEXTURE_WIDTH 1024 | 26 #define ATLAS_TEXTURE_WIDTH 1024 |
27 #define ATLAS_TEXTURE_HEIGHT 2048 | 27 #define ATLAS_TEXTURE_HEIGHT 2048 |
28 #define PLOT_WIDTH 256 | 28 #define PLOT_WIDTH 256 |
29 #define PLOT_HEIGHT 256 | 29 #define PLOT_HEIGHT 256 |
30 | 30 |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 geometry.fPath = GrTest::TestPath(random); | 625 geometry.fPath = GrTest::TestPath(random); |
626 geometry.fAntiAlias = random->nextBool(); | 626 geometry.fAntiAlias = random->nextBool(); |
627 | 627 |
628 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix, | 628 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix, |
629 gTestStruct.fAtlas, | 629 gTestStruct.fAtlas, |
630 &gTestStruct.fPathCache, | 630 &gTestStruct.fPathCache, |
631 &gTestStruct.fPathList); | 631 &gTestStruct.fPathList); |
632 } | 632 } |
633 | 633 |
634 #endif | 634 #endif |
OLD | NEW |