Index: bench/WritePixelsBench.cpp |
diff --git a/bench/WritePixelsBench.cpp b/bench/WritePixelsBench.cpp |
index 5138375ffbae41f428fd9b2758f8c5c0b170d09d..88b2e62ca59c3f31d447058adf853449db760cd6 100644 |
--- a/bench/WritePixelsBench.cpp |
+++ b/bench/WritePixelsBench.cpp |
@@ -54,9 +54,7 @@ protected: |
bmp.allocN32Pixels(size.width(), size.height()); |
canvas->readPixels(&bmp, 0, 0); |
- SkImageInfo info = bmp.info(); |
- info.fColorType = fColorType; |
- info.fAlphaType = fAlphaType; |
+ SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), fColorType, fAlphaType); |
for (int loop = 0; loop < loops; ++loop) { |
canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0); |