Index: bench/nanobench.cpp |
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp |
index 3dcd9db2d90f72740d5f7f2b833cd4c39b1ca770..a484fc2b40dcfbb60126e1d8f8d85d62d4db365f 100644 |
--- a/bench/nanobench.cpp |
+++ b/bench/nanobench.cpp |
@@ -133,7 +133,7 @@ static bool write_canvas_png(SkCanvas* canvas, const SkString& filename) { |
if (filename.isEmpty()) { |
return false; |
} |
- if (kUnknown_SkColorType == canvas->imageInfo().fColorType) { |
+ if (kUnknown_SkColorType == canvas->imageInfo().colorType()) { |
return false; |
} |
SkBitmap bmp; |
@@ -357,11 +357,8 @@ static Target* is_enabled(Benchmark* bench, const Config& config) { |
return NULL; |
} |
- SkImageInfo info; |
- info.fAlphaType = config.alpha; |
- info.fColorType = config.color; |
- info.fWidth = bench->getSize().fX; |
- info.fHeight = bench->getSize().fY; |
+ SkImageInfo info = SkImageInfo::Make(bench->getSize().fX, bench->getSize().fY, |
+ config.color, config.alpha); |
Target* target = new Target(config); |