const SkBitmap CreateBitmap(int width, int height) {
SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height);
- bitmap.allocPixels();
+ bitmap.allocN32Pixels(width, height);
bitmap.eraseARGB(255, 0, 255, 0);
return bitmap;
}
if (bmp1.width() != bmp2.width() ||
bmp1.height() != bmp2.height() ||
- bmp1.config() != SkBitmap::kARGB_8888_Config ||
- bmp2.config() != SkBitmap::kARGB_8888_Config) {
+ bmp1.colorType() != kN32_SkColorType ||
+ bmp2.colorType() != kN32_SkColorType) {
return false;
}