diff options
author | Mike Klein <mtklein@google.com> | 2014-07-15 16:10:02 -0400 |
---|---|---|
committer | Mike Klein <mtklein@google.com> | 2014-07-15 16:10:02 -0400 |
commit | 18515cf3702131ccc100de8d61a0490f595cf0df (patch) | |
tree | 8c2520647e0a783d9fc2c354f9aea30cdafe0def /dm | |
parent | 352c2181d15ed053c3b759f08ff1f51d50e2d3bb (diff) |
DM: destroy contexts after each GPU task instead of before
This is for consistency with bench/nanobench/GM. Haven't seen it make a difference.
BUG=skia:
Review URL: https://codereview.chromium.org/397743004
Diffstat (limited to 'dm')
-rw-r--r-- | dm/DMTask.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dm/DMTask.cpp b/dm/DMTask.cpp index b763556309..2c7cdd79a4 100644 --- a/dm/DMTask.cpp +++ b/dm/DMTask.cpp @@ -71,12 +71,12 @@ GpuTask::GpuTask(Reporter* reporter, TaskRunner* taskRunner) : Task(reporter, ta 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); } |