void controller::layer_destroyed(struct layer *l) {
logdebug("genivi::layer %s @ %p", __func__, this->proxy.get());
- this->chooks->add_task("remove layer", [l, this] {
- this->lprops.erase(l->id);
- this->layers.erase(l->id);
- });
+ this->lprops.erase(l->id);
+ this->layers.erase(l->id);
}
// __
if (content_state == IVI_CONTROLLER_SURFACE_CONTENT_STATE_CONTENT_REMOVED) {
// XXX is this the right thing to do?
this->chooks->surface_removed(s->id);
- this->chooks->add_task("remove surface", [this, s] {
- this->sprops.erase(s->id);
- this->surfaces.erase(s->id);
- });
+ this->sprops.erase(s->id);
+ this->surfaces.erase(s->id);
}
}