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" | |
24 | 23 |
25 #define ATLAS_TEXTURE_WIDTH 2048 | 24 #define ATLAS_TEXTURE_WIDTH 2048 |
26 #define ATLAS_TEXTURE_HEIGHT 2048 | 25 #define ATLAS_TEXTURE_HEIGHT 2048 |
27 #define PLOT_WIDTH 512 | 26 #define PLOT_WIDTH 512 |
28 #define PLOT_HEIGHT 256 | 27 #define PLOT_HEIGHT 256 |
29 | 28 |
30 #define NUM_PLOTS_X (ATLAS_TEXTURE_WIDTH / PLOT_WIDTH) | 29 #define NUM_PLOTS_X (ATLAS_TEXTURE_WIDTH / PLOT_WIDTH) |
31 #define NUM_PLOTS_Y (ATLAS_TEXTURE_HEIGHT / PLOT_HEIGHT) | 30 #define NUM_PLOTS_Y (ATLAS_TEXTURE_HEIGHT / PLOT_HEIGHT) |
32 | 31 |
33 #ifdef DF_PATH_TRACKING | 32 #ifdef DF_PATH_TRACKING |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 shape, | 612 shape, |
614 antiAlias, | 613 antiAlias, |
615 viewMatrix, | 614 viewMatrix, |
616 gTestStruct.fAtlas, | 615 gTestStruct.fAtlas, |
617 &gTestStruct.fShapeCache, | 616 &gTestStruct.fShapeCache, |
618 &gTestStruct.fShapeList, | 617 &gTestStruct.fShapeList, |
619 gammaCorrect); | 618 gammaCorrect); |
620 } | 619 } |
621 | 620 |
622 #endif | 621 #endif |
OLD | NEW |