Index: gm/blend.cpp |
diff --git a/gm/blend.cpp b/gm/blend.cpp |
index 94dc4c7f75fafceb314342f67ab8de97eee0de1e..6ecea4c8e918f73ab25647805ffc7ee5c33fd86d 100644 |
--- a/gm/blend.cpp |
+++ b/gm/blend.cpp |
@@ -36,7 +36,8 @@ DEF_SIMPLE_GM(blend, canvas, 300, 100) { |
// Print out the colors in each block (if we're looking at 8888 raster). |
if (canvas->imageInfo().colorType() == kN32_SkColorType) { |
- if (const SkPMColor* px = (const SkPMColor*)canvas->peekPixels(nullptr, nullptr)) { |
+ SkPixmap pmap; |
+ if (const SkPMColor* px = canvas->peekPixels(&pmap) ? pmap.addr32() : nullptr) { |
p.setColor(SK_ColorWHITE); |
for (int i = 0; i < 3; i++) { |
SkPMColor c = px[i * 100]; |