aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/texteffects.cpp
diff options
context:
space:
mode:
authorGravatar xidachen <xidachen@chromium.org>2015-12-21 07:29:03 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-21 07:29:03 -0800
commit627769144d233b3abce5ee86cf315df61fa8dcd7 (patch)
tree9653e130e895f758e359aa6a81a7985ee33a78c1 /gm/texteffects.cpp
parent17bc0851d34afe8c89d7455c061a1d419f76af8a (diff)
Create a hash table from id<-->key in SkImageFilter::CacheImpl
There is memory leak in the SkImageFilter::Cache. There are two sources of memory leak: 1. The cache filling up quickly. 2. A slow small leak that never stops. This CL solves the first issue, which prevents the cache filling up quickly. This CL creates a new hash table that index the SkImageFilter::uniqueID to an array of keys, and with the existing key<-->Value hash table, we can have SkImageFilters proactively purge content derived cached content when destroyed. BUG=489543 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1514893003 Committed: https://skia.googlesource.com/skia/+/f5d1f8dcc841516d7ea63c151b13059af40ca76d Review URL: https://codereview.chromium.org/1514893003
Diffstat (limited to 'gm/texteffects.cpp')
0 files changed, 0 insertions, 0 deletions