summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2009-09-29 17:02:26 -0400
committerMike Reed <reed@google.com>2009-09-29 17:02:26 -0400
commit4e03999ca20fd326e4ded3d7444ddd5c14f369c7 (patch)
tree33488089fb38c94e0a58fae04ebe832c75209235 /opengl/tests/gl_basic/gl_basic.cpp
parentf993fefc3b14ece3f0f3eac6bb3d241bffb3cdfb (diff)
if we have a single value for roundrect radius, manually clamp it before drawing.
Skia will clamp the radius independently in X and Y to ensure it is not larger than 1/2 the width (or height). If the caller to our drawable gives us a single value, we'll assume they want it to be circular, and not an oval. To do that, we clamp it up front, so we get (possibly smaller) circular corners, rather than potentially elliptical ones. This makes the progress bar look "nicer" when it is very thin in one dimension.
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions