Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9313)

Unified Diff: bench/nanobench.cpp

Issue 536003002: Hide fields in SkImageInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix qt Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/WritePixelsBench.cpp ('k') | debugger/QT/SkImageWidget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « bench/WritePixelsBench.cpp ('k') | debugger/QT/SkImageWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698