From 25e5a02d1cbbaa8352be314c45f9cf3599a8f30e Mon Sep 17 00:00:00 2001 From: ztenghui Date: Thu, 11 Sep 2014 09:57:19 -0700 Subject: [PATCH] Finer tessellation can draw better looking shadows for circles. b/14976551 Change-Id: I4b9e320b025dbee37cd1893881ddbaad62e3a6e2 --- libs/hwui/TessellationCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hwui/TessellationCache.cpp b/libs/hwui/TessellationCache.cpp index 9e62f364809ab..1e38f9e9e615f 100644 --- a/libs/hwui/TessellationCache.cpp +++ b/libs/hwui/TessellationCache.cpp @@ -216,7 +216,7 @@ static void tessellateShadows( // tessellate caster outline into a 2d polygon Vector casterVertices2d; - const float casterRefinementThresholdSquared = 20.0f; // TODO: experiment with this value + const float casterRefinementThresholdSquared = 4.0f; PathTessellator::approximatePathOutlineVertices(*casterPerimeter, casterRefinementThresholdSquared, casterVertices2d); if (!ShadowTessellator::isClockwisePath(*casterPerimeter)) {