From ec727c981dd7ed83e98c7713c2828c6ab144937b Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Fri, 1 Dec 2017 20:53:00 +0000 Subject: Revert "Fix rendering of drrects with small circular inner rrects." This reverts commit 096074af2c6fcbf622f0a42b2f7c56d0c66fbd80. Reason for revert: failing processor validation test Original change's description: > Fix rendering of drrects with small circular inner rrects. > > Previously when the inner rrect was a circle with a radius of 1 we would > cause a inf * 0 in the shader which would lead to the shape not rendering. > > This change also makes concentric circle drrects draw as stroked circles. > > bug: chromium:789262 > > Change-Id: I6efbe3fdde25d6c4e031c7412d83df009afe014a > Reviewed-on: https://skia-review.googlesource.com/79141 > Commit-Queue: Brian Salomon > Reviewed-by: Robert Phillips TBR=bsalomon@google.com,robertphillips@google.com Change-Id: Ie9b9c81380c0f98a6fc6c6dc350ec56402c4ff2b No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/79264 Reviewed-by: Brian Salomon Commit-Queue: Brian Salomon --- src/gpu/effects/GrCircleEffect.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/gpu/effects/GrCircleEffect.cpp') diff --git a/src/gpu/effects/GrCircleEffect.cpp b/src/gpu/effects/GrCircleEffect.cpp index 2198cc304f..3bd2138e94 100644 --- a/src/gpu/effects/GrCircleEffect.cpp +++ b/src/gpu/effects/GrCircleEffect.cpp @@ -66,9 +66,6 @@ private: SkScalar effectiveRadius = radius; if (GrProcessorEdgeTypeIsInverseFill((GrClipEdgeType)edgeType)) { effectiveRadius -= 0.5f; - // When the radius is 0.5 effectiveRadius is 0 which causes an inf * 0 in the - // shader. - effectiveRadius = SkTMax(0.001f, effectiveRadius); } else { effectiveRadius += 0.5f; } -- cgit v1.2.3