32 for (
auto& listener : fListeners) {
33 if (!listener->shouldDeregister()) {
43 SkASSERT(!listener->shouldDeregister());
47 for (
int i = 0;
i < fListeners.size(); ++
i) {
49 fListeners.removeShuffle(
i--);
52 fListeners.push_back(std::move(listener));
57 return fListeners.size();
62 for (
auto& listener : fListeners) {
63 if (!listener->shouldDeregister()) {
SkIDChangeListener::List List
void reset() SK_EXCLUDES(fMutex)
void changed() SK_EXCLUDES(fMutex)
int count() const SK_EXCLUDES(fMutex)
void add(sk_sp< SkIDChangeListener > listener) SK_EXCLUDES(fMutex)
~SkIDChangeListener() override