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

Unified Diff: bench/nanobench.cpp

Issue 1418723002: Valgrind experiment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | no next file » | 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 b2a35df6461a213b85bb5f2142582f15db83800a..16523545fa3da14eaca5dd34bb1dfed916633523 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -713,7 +713,7 @@ public:
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 @@ private:
SkTArray<SkString> fSKPs;
SkTArray<bool> fUseMPDs;
SkTArray<SkString> fImages;
- SkTArray<SkColorType> fColorTypes;
+ SkTArray<SkColorType, true> fColorTypes;
SkScalar fZoomMax;
double fZoomPeriodMs;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698