draw.Draw fast paths for a nil mask (and RGBA dst).
draw.Draw fast paths for a nil mask (and RGBA dst).

Averaged times (in microseconds) for drawing an 800x600 rectangle
are listed below. The summary is: around a 100x improvement.

draw.Draw call times were typically linear in the number of pixels
touched (i.e. drawing an 800x600 rectangle took 100x as much time as
drawing an 80x60 rectangle).

Before this change, there was only the general-but-slow code path.
When drawing any src with a 50%-opaque mask: 237300 us
When drawing any src with a nil mask: 50100 us

After this change, the 50%-opaque mask case is unchanged.
For an *image.RGBA dst and nil mask and...
...a uniform color (i.e. an image.ColorImage) src: 282 us
...another *image.RGBA src: 615 us.

For the curious, an intermediate implementation detected the special
cases but used simple nested for loops instead of the built-in copy
function. The respective times (compared to 282 and 615 for the
final implementation, or 50100 for the original) were 3110 and 3573.

Times were measured with 8g/8l on my laptop. I haven't tried gccgo
or other architectures.

R=r, rsc
CC=golang-dev
http://codereview.appspot.com/201048

rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,d0f/go-zh,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,Triskite/willstone-goclone,bryanxu/go-zh,mhennings/marcohennings-go,bryanxu/go-zh,rflanagan/reginaldflanagan-project1,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,Triskite/willstone-goclone,webfd/go-zh,npe9/noahevans-go9,rdp/rogerpack2005-golang,scirelli/scirelli-go,scirelli/scirelli-go,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,webfd/go-zh,scirelli/scirelli-go,npe9/noahevans-go9,d0f/go-zh,npe9/noahevans-go9,scirelli/scirelli-go,Triskite/willstone-goclone,bryanxu/go-zh,scirelli/scirelli-go,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,d0f/go-zh,d0f/go-zh,npe9/noahevans-go9,webfd/go-zh,rdp/rogerpack2005-golang,webfd/go-zh,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,scirelli/scirelli-go,scirelli/scirelli-go,webfd/go-zh,d0f/go-zh,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,sanjosh/sanjos100-tipc,rdp/rogerpack2005-golang,d0f/go-zh,rflanagan/reginaldflanagan-project1,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,npe9/noahevans-go9,mhennings/marcohennings-go,Triskite/willstone-goclone,scirelli/scirelli-go,mhennings/marcohennings-go,Triskite/willstone-goclone,mhennings/marcohennings-go,rdp/rogerpack2005-golang,bryanxu/go-zh,webfd/go-zh,mhennings/marcohennings-go,npe9/noahevans-go9,npe9/noahevans-go9,webfd/go-zh,Triskite/willstone-goclone,d0f/go-zh,Triskite/willstone-goclone,npe9/noahevans-go9,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,mhennings/marcohennings-go