Index: gm/image.cpp |
diff --git a/gm/image.cpp b/gm/image.cpp |
index ac72f63b36f96dc2ab271778578d9e31a588b35e..60c1f1141862c36db176df9bba313b911012986b 100644 |
--- a/gm/image.cpp |
+++ b/gm/image.cpp |
@@ -199,7 +199,7 @@ DEF_GM( return new ImageGM; ) |
static void draw_pixmap(SkCanvas* canvas, const SkPixmap& pmap) { |
SkBitmap bitmap; |
- bitmap.installPixels(pmap.info(), (void*)pmap.addr(), pmap.rowBytes()); |
+ bitmap.installPixels(pmap); |
canvas->drawBitmap(bitmap, 0, 0, nullptr); |
} |