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:
72266fd
)
Adjust tolerance to fix GPU hairline curve issues
author
jvanverth
<jvanverth@google.com>
Tue, 5 May 2015 15:01:51 +0000
(08:01 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Tue, 5 May 2015 15:01:51 +0000
(08:01 -0700)
BUG=chromium:472847
Review URL: https://codereview.chromium.org/
1126793003
src/gpu/GrAAHairLinePathRenderer.cpp
patch
|
blob
|
history
diff --git
a/src/gpu/GrAAHairLinePathRenderer.cpp
b/src/gpu/GrAAHairLinePathRenderer.cpp
index ba6dcecd43d08340bd57deac5a2dec20219c2a77..2749e4d3be0f859606b2f2c75d6658d51652a757 100644
(file)
--- a/
src/gpu/GrAAHairLinePathRenderer.cpp
+++ b/
src/gpu/GrAAHairLinePathRenderer.cpp
@@
-171,7
+171,7
@@
static int chop_conic(const SkPoint src[3], SkConic dst[4], const SkScalar weigh
// in this case approx the path with lines
// otherwise returns 1
static int is_degen_quad_or_conic(const SkPoint p[3], SkScalar* dsqd) {
- static const SkScalar gDegenerateToLineTol =
SK_Scalar1
;
+ static const SkScalar gDegenerateToLineTol =
GrPathUtils::kDefaultTolerance
;
static const SkScalar gDegenerateToLineTolSqd =
SkScalarMul(gDegenerateToLineTol, gDegenerateToLineTol);