OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "GrAADistanceFieldPathRenderer.h" | 8 #include "GrAADistanceFieldPathRenderer.h" |
9 | 9 |
10 #include "GrBatchFlushState.h" | 10 #include "GrBatchFlushState.h" |
11 #include "GrBatchTest.h" | 11 #include "GrBatchTest.h" |
12 #include "GrBuffer.h" | 12 #include "GrBuffer.h" |
13 #include "GrContext.h" | 13 #include "GrContext.h" |
14 #include "GrPipelineBuilder.h" | 14 #include "GrPipelineBuilder.h" |
15 #include "GrResourceProvider.h" | 15 #include "GrResourceProvider.h" |
16 #include "GrSurfacePriv.h" | 16 #include "GrSurfacePriv.h" |
17 #include "GrSWMaskHelper.h" | 17 #include "GrSWMaskHelper.h" |
18 #include "GrTexturePriv.h" | 18 #include "GrTexturePriv.h" |
19 #include "batches/GrVertexBatch.h" | 19 #include "batches/GrVertexBatch.h" |
20 #include "effects/GrDistanceFieldGeoProc.h" | 20 #include "effects/GrDistanceFieldGeoProc.h" |
21 | 21 |
22 #include "SkDistanceFieldGen.h" | 22 #include "SkDistanceFieldGen.h" |
| 23 #include "SkRTConf.h" |
23 | 24 |
24 #define ATLAS_TEXTURE_WIDTH 2048 | 25 #define ATLAS_TEXTURE_WIDTH 2048 |
25 #define ATLAS_TEXTURE_HEIGHT 2048 | 26 #define ATLAS_TEXTURE_HEIGHT 2048 |
26 #define PLOT_WIDTH 512 | 27 #define PLOT_WIDTH 512 |
27 #define PLOT_HEIGHT 256 | 28 #define PLOT_HEIGHT 256 |
28 | 29 |
29 #define NUM_PLOTS_X (ATLAS_TEXTURE_WIDTH / PLOT_WIDTH) | 30 #define NUM_PLOTS_X (ATLAS_TEXTURE_WIDTH / PLOT_WIDTH) |
30 #define NUM_PLOTS_Y (ATLAS_TEXTURE_HEIGHT / PLOT_HEIGHT) | 31 #define NUM_PLOTS_Y (ATLAS_TEXTURE_HEIGHT / PLOT_HEIGHT) |
31 | 32 |
32 #ifdef DF_PATH_TRACKING | 33 #ifdef DF_PATH_TRACKING |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 shape, | 613 shape, |
613 antiAlias, | 614 antiAlias, |
614 viewMatrix, | 615 viewMatrix, |
615 gTestStruct.fAtlas, | 616 gTestStruct.fAtlas, |
616 &gTestStruct.fShapeCache, | 617 &gTestStruct.fShapeCache, |
617 &gTestStruct.fShapeList, | 618 &gTestStruct.fShapeList, |
618 gammaCorrect); | 619 gammaCorrect); |
619 } | 620 } |
620 | 621 |
621 #endif | 622 #endif |
OLD | NEW |