| 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 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 GrTextureParams params(SkShader::kRepeat_TileMode, GrTextureParams::kBil
erp_FilterMode); | 191 GrTextureParams params(SkShader::kRepeat_TileMode, GrTextureParams::kBil
erp_FilterMode); |
| 192 | 192 |
| 193 // Setup GrGeometryProcessor | 193 // Setup GrGeometryProcessor |
| 194 GrBatchAtlas* atlas = fAtlas; | 194 GrBatchAtlas* atlas = fAtlas; |
| 195 SkAutoTUnref<GrGeometryProcessor> dfProcessor( | 195 SkAutoTUnref<GrGeometryProcessor> dfProcessor( |
| 196 GrDistanceFieldPathGeoProc::Create(this->color(), | 196 GrDistanceFieldPathGeoProc::Create(this->color(), |
| 197 this->viewMatrix(), | 197 this->viewMatrix(), |
| 198 atlas->getTexture(), | 198 atlas->getTexture(), |
| 199 params, | 199 params, |
| 200 flags, | 200 flags)); |
| 201 false)); | |
| 202 | 201 |
| 203 this->initDraw(batchTarget, dfProcessor, pipeline); | 202 this->initDraw(batchTarget, dfProcessor, pipeline); |
| 204 | 203 |
| 205 FlushInfo flushInfo; | 204 FlushInfo flushInfo; |
| 206 | 205 |
| 207 // allocate vertices | 206 // allocate vertices |
| 208 size_t vertexStride = dfProcessor->getVertexStride(); | 207 size_t vertexStride = dfProcessor->getVertexStride(); |
| 209 SkASSERT(vertexStride == 2 * sizeof(SkPoint)); | 208 SkASSERT(vertexStride == 2 * sizeof(SkPoint)); |
| 210 | 209 |
| 211 const GrVertexBuffer* vertexBuffer; | 210 const GrVertexBuffer* vertexBuffer; |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 geometry.fPath = GrTest::TestPath(random); | 670 geometry.fPath = GrTest::TestPath(random); |
| 672 geometry.fAntiAlias = random->nextBool(); | 671 geometry.fAntiAlias = random->nextBool(); |
| 673 | 672 |
| 674 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix, | 673 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix, |
| 675 gTestStruct.fAtlas, | 674 gTestStruct.fAtlas, |
| 676 &gTestStruct.fPathCache, | 675 &gTestStruct.fPathCache, |
| 677 &gTestStruct.fPathList); | 676 &gTestStruct.fPathList); |
| 678 } | 677 } |
| 679 | 678 |
| 680 #endif | 679 #endif |
| OLD | NEW |