Modify SkBitmap::extractSubset() to respect opaqueness
authorskyostil@google.com <skyostil@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 Jan 2012 14:56:51 +0000 (14:56 +0000)
committerskyostil@google.com <skyostil@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 Jan 2012 14:56:51 +0000 (14:56 +0000)
commitce7adb580ee7cc608e1049732b1ebb3f0533df4a
treeb03a7afa2656a2a128361b62f3edecd75e7ad414
parent9f169a4b01483b83880a1f8aa4d7a69790c2c8e8
Modify SkBitmap::extractSubset() to respect opaqueness

The resulting subset bitmap will always have the same opaqueness flag as the
source bitmap.

BUG=439
Review URL: http://codereview.appspot.com/5534051

git-svn-id: http://skia.googlecode.com/svn/trunk@3036 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkBitmap.cpp
tests/BitmapCopyTest.cpp