| Index: src/gpu/batches/GrAADistanceFieldPathRenderer.cpp
|
| diff --git a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp
|
| index 6a8ec2ff8570d0b2178a1690f7f83a566583bae0..f10d3b8bbeabd7753b359429bfe1b198460160b3 100644
|
| --- a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp
|
| +++ b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp
|
| @@ -1,4 +1,3 @@
|
| -
|
| /*
|
| * Copyright 2014 Google Inc.
|
| *
|
| @@ -96,7 +95,7 @@ bool GrAADistanceFieldPathRenderer::onCanDrawPath(const CanDrawPathArgs& args) c
|
| if (args.fViewMatrix->hasPerspective()) {
|
| return false;
|
| }
|
| -
|
| +
|
| // only support paths with bounds within kMediumMIP by kMediumMIP,
|
| // scaled to have bounds within 2.0f*kLargeMIP by 2.0f*kLargeMIP
|
| // the goal is to accelerate rendering of lots of small paths that may be scaling
|
| @@ -155,7 +154,7 @@ public:
|
|
|
| const char* name() const override { return "AADistanceFieldPathBatch"; }
|
|
|
| - void computePipelineOptimizations(GrInitInvariantOutput* color,
|
| + void computePipelineOptimizations(GrInitInvariantOutput* color,
|
| GrInitInvariantOutput* coverage,
|
| GrBatchToXPOverrides* overrides) const override {
|
| color->setKnownFourComponents(fGeoData[0].fColor);
|
| @@ -570,7 +569,7 @@ bool GrAADistanceFieldPathRenderer::onDrawPath(const DrawPathArgs& args) {
|
| // generated due to stroking it is important that the original path's id is used
|
| // for caching.
|
| geometry.fGenID = args.fPath->getGenerationID();
|
| -
|
| +
|
| SkAutoTUnref<GrDrawBatch> batch(AADistanceFieldPathBatch::Create(geometry,
|
| *args.fViewMatrix, fAtlas,
|
| &fPathCache, &fPathList));
|
|
|