Add GPU support for roundrects
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 25 Apr 2013 15:27:00 +0000 (15:27 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 25 Apr 2013 15:27:00 +0000 (15:27 +0000)
commitf2bfd54de32ffbcf90ddcd0e249aaebb1559d9c2
tree1068c54781522b1908b5c94a3fb7645045eab0a0
parenteb02957a5ff4e7b639263b2071e5e2522c7bc4fa
Add GPU support for roundrects

This uses the OvalRenderer to render roundrects as "stretched ovals." It adds an
additional shader that handles the straight edges of ellipsoid roundrects better,
and uses the circle shader for roundrects where the two radii are the same. Only
axis-aligned, simple roundrects are supported. Handles fill, stroke and hairline.

R=bsalomon@google.com, robertphillips@google.com, reed@google.com

Author: jvanverth@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@8859 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkDevice.h
include/core/SkDrawFilter.h
include/gpu/GrContext.h
include/gpu/GrOvalRenderer.h
include/gpu/SkGpuDevice.h
src/core/SkCanvas.cpp
src/core/SkDevice.cpp
src/gpu/GrContext.cpp
src/gpu/GrOvalRenderer.cpp
src/gpu/SkGpuDevice.cpp