commit | cd1c3eba69d044b551cededad75474038f919890 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Thu Apr 14 10:38:54 2016 -0700 |
committer | John Reck <jreck@google.com> | Fri Apr 15 10:56:53 2016 -0700 |
tree | e7ec0697f43ef8d23420732f620587f99c67475a | |
parent | a4c0b1de1a33219b4f8ef1cdfc4e7641ac246f4b [diff] [blame] |
Add a callback for when a gl functor is released Bug: 27709981 Change-Id: Id5be3e8f88d6d84a9c59c7ed23e7e8862feefbe8
diff --git a/libs/hwui/DisplayList.cpp b/libs/hwui/DisplayList.cpp index 181b343..b572bda 100644 --- a/libs/hwui/DisplayList.cpp +++ b/libs/hwui/DisplayList.cpp
@@ -73,6 +73,12 @@ delete path; } + for (auto& iter : functors) { + if (iter.listener) { + iter.listener->onGlFunctorReleased(iter.functor); + } + } + patchResources.clear(); pathResources.clear(); paints.clear();