Index: gm/deviceproperties.cpp |
diff --git a/gm/deviceproperties.cpp b/gm/deviceproperties.cpp |
index 8bca4b7f21e973cce91200a792fdc680b735a0ae..8c4649c3729f8cac7b565137063c49711aaa5572 100644 |
--- a/gm/deviceproperties.cpp |
+++ b/gm/deviceproperties.cpp |
@@ -38,8 +38,7 @@ protected: |
virtual void onDraw(SkCanvas* originalCanvas) { |
SkISize size = this->getISize(); |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, size.width(), size.height()); |
- bitmap.allocPixels(); |
+ bitmap.allocN32Pixels(size.width(), size.height()); |
SkDeviceProperties properties = SkDeviceProperties::Make( |
SkDeviceProperties::Geometry::Make(SkDeviceProperties::Geometry::kVertical_Orientation, |
SkDeviceProperties::Geometry::kBGR_Layout), |