aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPicture.cpp
diff options
context:
space:
mode:
authorGravatar humper <humper@google.com>2014-06-02 11:09:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-02 11:09:13 -0700
commit173a5c544be92a09cd8f7eae0e1d50da114e2bc0 (patch)
tree721927d272e8ec92807f1d7fb9ba77d1d4930aca /src/core/SkPicture.cpp
parentada3635c8e83739f45cd52459d3e052783d1a40e (diff)
invert comparison sense for reason return
BUG=skia: R=bsalomon@google.com Author: humper@google.com Review URL: https://codereview.chromium.org/313433003
Diffstat (limited to 'src/core/SkPicture.cpp')
-rw-r--r--src/core/SkPicture.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index 57a614913e..8bb12543b5 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;
}