projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e91246
)
improve cull, so we don't create empty segments
author
reed
<reed@google.com>
Fri, 12 Dec 2014 20:48:50 +0000
(12:48 -0800)
committer
Commit bot
<commit-bot@chromium.org>
Fri, 12 Dec 2014 20:48:50 +0000
(12:48 -0800)
BUG=skia:3224
Review URL: https://codereview.chromium.org/
798093002
src/effects/SkDashPathEffect.cpp
patch
|
blob
|
history
diff --git
a/src/effects/SkDashPathEffect.cpp
b/src/effects/SkDashPathEffect.cpp
index
f866ea0
..
8cd703f
100644
(file)
--- a/
src/effects/SkDashPathEffect.cpp
+++ b/
src/effects/SkDashPathEffect.cpp
@@
-94,7
+94,7
@@
static bool cull_line(SkPoint* pts, const SkStrokeRec& rec,
}
SkASSERT(minX < maxX);
- if (maxX <
bounds.fLeft || minX >
bounds.fRight) {
+ if (maxX <
= bounds.fLeft || minX >=
bounds.fRight) {
return false;
}
@@
-125,7
+125,7
@@
static bool cull_line(SkPoint* pts, const SkStrokeRec& rec,
}
SkASSERT(minY < maxY);
- if (maxY <
bounds.fTop || minY >
bounds.fBottom) {
+ if (maxY <
= bounds.fTop || minY >=
bounds.fBottom) {
return false;
}