Index: dm/DMTileGridTask.cpp |
diff --git a/dm/DMTileGridTask.cpp b/dm/DMTileGridTask.cpp |
index cd3c7b79bec9de6beb7d5754a8cf1ce4b2e6037e..beffbb0371d40192622a2a1498b26543d2171b73 100644 |
--- a/dm/DMTileGridTask.cpp |
+++ b/dm/DMTileGridTask.cpp |
@@ -34,12 +34,12 @@ void TileGridTask::draw() { |
RecordPicture(fGM.get(), &recorded, SkPicture::kUsePathBoundsForClip_RecordingFlag); |
SkBitmap full; |
- SetupBitmap(fReference.config(), fGM.get(), &full); |
+ SetupBitmap(fReference.colorType(), fGM.get(), &full); |
SkCanvas fullCanvas(full); |
SkBitmap tile; |
- tile.setConfig(fReference.config(), fTileSize.width(), fTileSize.height()); |
- tile.allocPixels(); |
+ tile.allocPixels(SkImageInfo::Make(fTileSize.width(), fTileSize.height(), |
+ fReference.colorType(), kPremul_SkAlphaType)); |
SkCanvas tileCanvas(tile); |
SkPaint paint; |