| Index: src/core/SkPicture.cpp
|
| diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
|
| index 57a614913ee4a91ba7dfb8f91e1ed7d22815122d..8bb12543b5008dbe30d43d4de9d7345f265013b4 100644
|
| --- a/src/core/SkPicture.cpp
|
| +++ b/src/core/SkPicture.cpp
|
| @@ -664,10 +664,12 @@ bool SkPicture::suitableForGpuRasterization(GrContext* context, const char **rea
|
| bool ret = this->numPaintWithPathEffectUses() < kNumPaintWithPathEffectUsesTol &&
|
| (this->numAAConcavePaths()-this->numAAHairlineConcavePaths()) < kNumAAConcavePaths;
|
| if (!ret && reason) {
|
| - if (this->numPaintWithPathEffectUses() < kNumPaintWithPathEffectUsesTol)
|
| + if (this->numPaintWithPathEffectUses() >= kNumPaintWithPathEffectUsesTol)
|
| *reason = "Too many path effects.";
|
| - else if ((this->numAAConcavePaths()-this->numAAHairlineConcavePaths()) < kNumAAConcavePaths)
|
| + else if ((this->numAAConcavePaths()-this->numAAHairlineConcavePaths()) >= kNumAAConcavePaths)
|
| *reason = "Too many anti-aliased concave paths.";
|
| + else
|
| + *reason = "Unknown reason for GPU unsuitability.";
|
| }
|
| return ret;
|
| }
|
|
|