Fix stroked roundrects on Nexus 10.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 13 May 2013 14:41:03 +0000 (14:41 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 13 May 2013 14:41:03 +0000 (14:41 +0000)
commit166726b11792bb2f58624f4250a8599294eb88ba
treec59a92f0800d115629a1af74241e8c4ae1f3cbe6
parent63a3f6f5d98711f1d83967ed10e5e972b586ae6e
Fix stroked roundrects on Nexus 10.

Due to floating point precision errors, using the formula b^2x^2 + a^2y^2  - a^2b^2
doesn't work on the Nexus 10 GPU. Changed to use x^2/a^2 + y^2/b^2  - 1.

Addresses issue 1290.

R=bsalomon@google.com

Author: jvanverth@google.com

Review URL: https://chromiumcodereview.appspot.com/15039016

git-svn-id: http://skia.googlecode.com/svn/trunk@9110 2bbb7eff-a529-9590-31e7-b0007b416f81
src/gpu/GrOvalRenderer.cpp