BUG=
R=scroggo@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/
128953003
git-svn-id: http://skia.googlecode.com/svn/trunk@12977
2bbb7eff-a529-9590-31e7-
b0007b416f81
}
SkImage_Raster::SkImage_Raster(const Info& info, SkPixelRef* pr, size_t rowBytes)
-: INHERITED(info.fWidth, info.fHeight) {
- SkBitmap::Config config = SkImageInfoToBitmapConfig(info);
-
- fBitmap.setConfig(config, info.fWidth, info.fHeight, rowBytes, info.fAlphaType);
+ : INHERITED(info.fWidth, info.fHeight)
+{
+ fBitmap.setConfig(info, rowBytes);
fBitmap.setPixelRef(pr);
}