skia2/include
xidachen 185a3798db Fix memory leak in SkImageFilter
In our current implementation of SkImageFilterCache, when the
removeInternal() function is called, the Value is removed, but their
corresponding keys are not always removed in SkImageFilter. That could
result in memory leak.

In this CL, we made changes such that the Value structure now keeps
a pointer to the SkImageFilter. Each time when the removeInternal()
is called, we ask the SkImageFilter to remove the associated keys.

Bug: 689740
Change-Id: I0807fa3581881ad1530536df5289e3976792281f
Reviewed-on: https://skia-review.googlesource.com/20960
Commit-Queue: Xida Chen <xidachen@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Stephen White <senorblanco@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2017-06-29 15:51:17 +00:00
..
android Let region decoders query the type and color space 2017-04-14 13:59:35 +00:00
c C API: document sk_matrix_t 2017-03-21 18:04:34 +00:00
codec Consolidate decoding frames into SkCodec 2017-06-12 20:55:59 +00:00
config Revert "Revert "SkUserConfig.h: remove out-of-date comment on SK_SFNTLY_SUBSETTER"" 2017-01-27 14:40:01 +00:00
core Fix memory leak in SkImageFilter 2017-06-29 15:51:17 +00:00
effects Remove SkImageFilter::MakeBlur entry point 2017-06-27 12:49:25 +00:00
encode Add comments support for PNG encoder 2017-06-09 17:24:03 +00:00
gpu Move mock gpu and caps, add Gr prefix, and create via GrContext::Create 2017-06-23 15:42:15 +00:00
pathops use reversePathTo in place of addPathReverse 2016-11-07 05:09:28 -08:00
ports remove unneeded include 2017-06-09 12:44:54 +00:00
private Fix MDB regression 2017-06-19 16:40:43 +00:00
svg no need for SK_SUPPORT_LEGACY_CANVAS_IS_REFCNT anymore 2016-12-07 22:28:04 +00:00
utils Add tonal color support for shadows. 2017-06-09 17:18:58 +00:00
views Touch input support for Windows 2017-06-07 14:27:09 +00:00