add leaks flag to show unref'd insts
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 23 Jan 2014 17:21:19 +0000 (17:21 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 23 Jan 2014 17:21:19 +0000 (17:21 +0000)
commit6dda827913a3dbdb84934f4f1d79c0b702169e5c
tree9c55ea757a7ba627fb78ccf608af2abd514c82a2
parent4732df69415fbece99b3d4c033dc3bebe73d0117
add leaks flag to show unref'd insts

Leaks are shown optionally instead of always for tests, gm, and bench.
The current display does not show actual leaks necessarily, but
shows global objects that were not deleted when the test ended.
To enable the end-of-run leak display, pass --leaks or -l.

BUG=skia:
R=mtklein@google.com

Author: caryclark@google.com

Review URL: https://codereview.chromium.org/143943009

git-svn-id: http://skia.googlecode.com/svn/trunk@13151 2bbb7eff-a529-9590-31e7-b0007b416f81
bench/benchmain.cpp
gm/gmmain.cpp
tests/skia_test.cpp