Share code in various SkGPipeCanvas::drawBitmap_ calls.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 30 Jul 2012 14:40:01 +0000 (14:40 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 30 Jul 2012 14:40:01 +0000 (14:40 +0000)
commit58be682c77c76d9a0caf23337f9b357798179b6c
tree6b5af87b0eb6dbcc33f9e7c5318f616e20ad8c92
parent8e1034e9ca0e3009f65125239e21b06ec51a55a6
Share code in various SkGPipeCanvas::drawBitmap_ calls.

Also implement SkGPipeCanvas::drawBitmapMatrix, and
create a GM to make sure it works properly.

Use a flag instead of writing a bool for determining whether
drawBitmap_ has a paint and whether drawBitmapRect has a source
rectangle.

BUG=
TEST=drawbitmapmatrix GM

Review URL: https://codereview.appspot.com/6450053

git-svn-id: http://skia.googlecode.com/svn/trunk@4828 2bbb7eff-a529-9590-31e7-b0007b416f81
gm/bitmapmatrix.cpp [new file with mode: 0644]
gyp/gmslides.gypi
src/pipe/SkGPipePriv.h
src/pipe/SkGPipeRead.cpp
src/pipe/SkGPipeWrite.cpp