aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPath.h
diff options
context:
space:
mode:
authorGravatar kkinnunen <kkinnunen@nvidia.com>2015-05-13 00:02:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-13 00:02:26 -0700
commit8f827fe44aad3c93638bc0f5dec32812c9ba2c98 (patch)
treeb260113cf56fbf1f745de60ce7d44cda9072b362 /src/gpu/GrPath.h
parent6cbf18c70bf99f58b2bb1c49cdf8d41be561fee4 (diff)
Fix SkStrokeRec == to report true for all fills
Fix SkStrokeRec == to report true for all fills, regardless of the stale stroking data the object might contain. Review URL: https://codereview.chromium.org/1130153002
Diffstat (limited to 'src/gpu/GrPath.h')
-rw-r--r--src/gpu/GrPath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrPath.h b/src/gpu/GrPath.h
index 27bbdc0439..ab8c51f2af 100644
--- a/src/gpu/GrPath.h
+++ b/src/gpu/GrPath.h
@@ -31,7 +31,7 @@ public:
static uint64_t ComputeStrokeKey(const SkStrokeRec&);
bool isEqualTo(const SkPath& path, const SkStrokeRec& stroke) {
- return fSkPath == path && fStroke == stroke;
+ return fSkPath == path && fStroke.hasEqualEffect(stroke);
}
const SkRect& getBounds() const { return fBounds; }