Index: src/image/SkImage_Raster.cpp |
diff --git a/src/image/SkImage_Raster.cpp b/src/image/SkImage_Raster.cpp |
index a872ae36e52d3aad65b23fffa280544876b252d5..807c19e79d4941522f75b43d67c88a896829b102 100644 |
--- a/src/image/SkImage_Raster.cpp |
+++ b/src/image/SkImage_Raster.cpp |
@@ -84,10 +84,8 @@ SkImage* SkImage_Raster::NewEmpty() { |
SkImage_Raster::SkImage_Raster(const Info& info, SkData* data, size_t rowBytes) |
: INHERITED(info.fWidth, info.fHeight) { |
- SkBitmap::Config config = SkImageInfoToBitmapConfig(info); |
- |
- fBitmap.setConfig(config, info.fWidth, info.fHeight, rowBytes, info.fAlphaType); |
- fBitmap.setPixelRef(SkNEW_ARGS(SkDataPixelRef, (data)))->unref(); |
+ fBitmap.setConfig(info, rowBytes); |
+ fBitmap.setPixelRef(SkNEW_ARGS(SkDataPixelRef, (info, data)))->unref(); |
fBitmap.setImmutable(); |
} |