| 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 "GrBatchTarget.h" | 11 #include "GrBatchTarget.h" |
| 12 #include "GrBatchTest.h" | 12 #include "GrBatchTest.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 "GrVertexBuffer.h" | 19 #include "GrVertexBuffer.h" |
| 20 #include "batches/GrBatch.h" | 20 #include "batches/GrVertexBatch.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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 geometry.fPath = GrTest::TestPath(random); | 617 geometry.fPath = GrTest::TestPath(random); |
| 618 geometry.fAntiAlias = random->nextBool(); | 618 geometry.fAntiAlias = random->nextBool(); |
| 619 | 619 |
| 620 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix, | 620 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix, |
| 621 gTestStruct.fAtlas, | 621 gTestStruct.fAtlas, |
| 622 &gTestStruct.fPathCache, | 622 &gTestStruct.fPathCache, |
| 623 &gTestStruct.fPathList); | 623 &gTestStruct.fPathList); |
| 624 } | 624 } |
| 625 | 625 |
| 626 #endif | 626 #endif |
| OLD | NEW |