Resolve a few memory leaks in tests.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 24 Jan 2014 18:33:07 +0000 (18:33 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 24 Jan 2014 18:33:07 +0000 (18:33 +0000)
commit227c24673196f5f06bee85e7e9aa067be90e1359
tree0c9cb5e49e880dfff5936bb3b3be5509c26e1a33
parentdd10e0ec4c9aeeadcd922d3ad0bf01496d920978
Resolve a few memory leaks in tests.

Purge the global scaled image cache after use in tests.  The cache was
right to hold on to the pixels indefinitely, but this change makes it
easier to run down actual memory leaks.

Add SK_DECLARE_INST_COUNT to several classes.

BUG=skia:
R=reed@google.com

Author: halcanary@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@13171 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkMallocPixelRef.h
include/gpu/SkGrPixelRef.h
src/core/SkScaledImageCache.cpp
src/lazy/SkCachingPixelRef.h
src/lazy/SkDiscardablePixelRef.h
tests/CachedDecodingPixelRefTest.cpp