| 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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 return false; | 576 return false; |
| 577 } | 577 } |
| 578 } | 578 } |
| 579 | 579 |
| 580 AADistanceFieldPathBatch::Geometry geometry(stroke); | 580 AADistanceFieldPathBatch::Geometry geometry(stroke); |
| 581 geometry.fPath = path; | 581 geometry.fPath = path; |
| 582 geometry.fAntiAlias = antiAlias; | 582 geometry.fAntiAlias = antiAlias; |
| 583 | 583 |
| 584 SkAutoTUnref<GrBatch> batch(AADistanceFieldPathBatch::Create(geometry, color
, viewMatrix, | 584 SkAutoTUnref<GrBatch> batch(AADistanceFieldPathBatch::Create(geometry, color
, viewMatrix, |
| 585 fAtlas, &fPathC
ache, &fPathList)); | 585 fAtlas, &fPathC
ache, &fPathList)); |
| 586 target->drawBatch(pipelineBuilder, batch); | 586 target->drawBatch(*pipelineBuilder, batch); |
| 587 | 587 |
| 588 return true; | 588 return true; |
| 589 } | 589 } |
| 590 | 590 |
| 591 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 591 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 592 | 592 |
| 593 #ifdef GR_TEST_UTILS | 593 #ifdef GR_TEST_UTILS |
| 594 | 594 |
| 595 struct PathTestStruct { | 595 struct PathTestStruct { |
| 596 typedef GrAADistanceFieldPathRenderer::PathCache PathCache; | 596 typedef GrAADistanceFieldPathRenderer::PathCache PathCache; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 geometry.fPath = GrTest::TestPath(random); | 651 geometry.fPath = GrTest::TestPath(random); |
| 652 geometry.fAntiAlias = random->nextBool(); | 652 geometry.fAntiAlias = random->nextBool(); |
| 653 | 653 |
| 654 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix, | 654 return AADistanceFieldPathBatch::Create(geometry, color, viewMatrix, |
| 655 gTestStruct.fAtlas, | 655 gTestStruct.fAtlas, |
| 656 &gTestStruct.fPathCache, | 656 &gTestStruct.fPathCache, |
| 657 &gTestStruct.fPathList); | 657 &gTestStruct.fPathList); |
| 658 } | 658 } |
| 659 | 659 |
| 660 #endif | 660 #endif |
| OLD | NEW |