Fix RRect tranform bug
authorrobertphillips <robertphillips@google.com>
Fri, 27 Jun 2014 15:59:26 +0000 (08:59 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 27 Jun 2014 15:59:26 +0000 (08:59 -0700)
commite5c1e3cd63e22bb06c24dd051f4d814f24786c08
tree993b1d4b6479905fb4a745a0b1680e0a658de873
parenta8377402ee626bd0a6c61ef9f0c256f06eca5759
Fix RRect tranform bug

When a RRect is an oval transforming the rectangle and the radii separately can result in a non-oval result (i.e., due to numerical issues some tiny straight edges may creep in). This CL remedies the situation by computing the new radii directly from the transformed rect.

BUG=skia:2696
R=caryclark@google.com

Author: robertphillips@google.com

Review URL: https://codereview.chromium.org/354913004
src/core/SkRRect.cpp
tests/RoundRectTest.cpp