Purge clip masks when they are no longer findable.
authorBrian Salomon <bsalomon@google.com>
Fri, 6 Jan 2017 18:54:58 +0000 (13:54 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 6 Jan 2017 19:42:08 +0000 (19:42 +0000)
commit19f0ed5b83a6ddf163a78bcb1c701f6020e6a17c
tree1f95cbab5eae57a734aeee489099b9b9f97f2331
parent9953737bcf885a52c08ade6c503f2202e4dd9aa5
Purge clip masks when they are no longer findable.

This improves memory usage when the content contains frequently changing clips implemented as masks.

BUG=chromium:676459

Change-Id: I06ea5f9fe1cff9564ea136bad9fe97f6ecd77ad9
Reviewed-on: https://skia-review.googlesource.com/6629
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
gn/core.gni
include/core/SkClipStack.h
include/private/SkMessageBus.h [moved from src/core/SkMessageBus.h with 100% similarity]
src/gpu/GrClipStackClip.cpp
src/gpu/GrClipStackClip.h
tests/ClipStackTest.cpp
tests/ResourceCacheTest.cpp