Add new gradient to support HTML Canvas2D two-point-radial-gradient. Ours is
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 6 Jun 2012 20:31:56 +0000 (20:31 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 6 Jun 2012 20:31:56 +0000 (20:31 +0000)
commitcb7be694c31f833c00a0dfb3529aaead3a4db62d
tree41bf84b12e7b0e128cb5b75f21abb037ca3f2cff
parentd895b055a05992f5575fee08f0e1ccfe167b0f94
Add new gradient to support HTML Canvas2D two-point-radial-gradient. Ours is
called (for now at least) TwoPointConical, to distinguish it from the
existing one (TwoPointRadial), and to reflect its odd behavior where it draws
transparent outside the boundary of the "cone" between the two circles.

This impl is unsupported by GPU and Printing at the moment, and Chrome does not
yet invoke it.
Review URL: https://codereview.appspot.com/6299051

git-svn-id: http://skia.googlecode.com/svn/trunk@4197 2bbb7eff-a529-9590-31e7-b0007b416f81
gm/twopointradial.cpp
include/effects/SkGradientShader.h
src/effects/SkGradientShader.cpp