aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lazy/SkCachingPixelRef.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-24 18:33:07 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-24 18:33:07 +0000
commit227c24673196f5f06bee85e7e9aa067be90e1359 (patch)
tree0c9cb5e49e880dfff5936bb3b3be5509c26e1a33 /src/lazy/SkCachingPixelRef.h
parentdd10e0ec4c9aeeadcd922d3ad0bf01496d920978 (diff)
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
Diffstat (limited to 'src/lazy/SkCachingPixelRef.h')
-rw-r--r--src/lazy/SkCachingPixelRef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lazy/SkCachingPixelRef.h b/src/lazy/SkCachingPixelRef.h
index 905ee9bf0d..b73a2ca443 100644
--- a/src/lazy/SkCachingPixelRef.h
+++ b/src/lazy/SkCachingPixelRef.h
@@ -25,6 +25,7 @@ class SkColorTable;
*/
class SkCachingPixelRef : public SkPixelRef {
public:
+ SK_DECLARE_INST_COUNT(SkCachingPixelRef)
/**
* Takes ownership of SkImageGenerator. If this method fails for
* whatever reason, it will return false and immediatetely delete