This is for consistency with bench/nanobench/GM. Haven't seen it make a difference.
BUG=skia:
Review URL: https://codereview.chromium.org/
397743004
void GpuTask::run(GrContextFactory& factory) {
if (FLAGS_gpu && !this->shouldSkip()) {
- if (FLAGS_resetGpuContext) {
- factory.destroyContexts();
- }
this->start();
if (!FLAGS_dryRun) this->draw(&factory);
this->finish();
+ if (FLAGS_resetGpuContext) {
+ factory.destroyContexts();
+ }
}
SkDELETE(this);
}