round and bevel hairline rects show the same as miter hairline rects
authoryunchao.he <yunchao.he@intel.com>
Tue, 29 Jul 2014 02:18:49 +0000 (19:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 29 Jul 2014 02:18:49 +0000 (19:18 -0700)
commit2bff230d835fbc84f0ce8b2e7a399fe8416ec7c8
tree6a096046193a0c0696340581026f50f649702fb2
parent15ab26d94242a790230aee6f2c4889bca910c8f7
round and bevel hairline rects show the same as miter hairline rects

So round and bevel hairline rects can generate the vertices and indices the same as miter rects do. The original code behaves the same as bevel rects for round and bevel hairline rects.

This small CL can save (vertices and indices) buffer memory as well as improve performance (draw less triangles).

gm cases show no difference after this CL is applied.

BUG=skia:
R=robertphillips@google.com

Author: yunchao.he@intel.com

Review URL: https://codereview.chromium.org/417113002
src/gpu/GrAARectRenderer.cpp