Valgrind experiment
I don't really expect this to fix the errors, but I think
it's worth it to try shaking up the valgrind bot overnight.
There's some strange behavior with regard to color type on
the valgrind bot that I can't reproduce and that we aren't
seeing on any of the other bots.
TBR=mtklein,scroggo
BUG=skia:
Review URL: https://codereview.chromium.org/1418723002
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index b2a35df..1652354 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -713,7 +713,7 @@
kAlpha_8_SkColorType,
kIndex_8_SkColorType,
kGray_8_SkColorType };
- fColorTypes.push_back_n(SK_ARRAY_COUNT(colorTypes), colorTypes);
+ fColorTypes.reset(colorTypes, SK_ARRAY_COUNT(colorTypes));
}
static bool ReadPicture(const char* path, SkAutoTUnref<SkPicture>* pic) {
@@ -1117,7 +1117,7 @@
SkTArray<SkString> fSKPs;
SkTArray<bool> fUseMPDs;
SkTArray<SkString> fImages;
- SkTArray<SkColorType> fColorTypes;
+ SkTArray<SkColorType, true> fColorTypes;
SkScalar fZoomMax;
double fZoomPeriodMs;