Fix config strings in nanobench tracing

These are transient, so need to be copied.

Bug: skia:
Change-Id: Id24db0b96f343ecd034dd015da6e19ea61579b56
Reviewed-on: https://skia-review.googlesource.com/41741
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
Brian Osman 2017-08-31 16:17:49 -04:00 committed by Skia Commit-Bot
parent 9fe13cd710
commit c2ce091f27

View File

@ -1273,7 +1273,7 @@ int main(int argc, char** argv) {
}
}
TRACE_EVENT1("skia", bench->getUniqueName(), "config", config);
TRACE_EVENT1("skia", bench->getUniqueName(), "config", TRACE_STR_COPY(config));
target->setup();
bench->perCanvasPreDraw(canvas);