{
__zone = zone;
__zone->registerCallbackWindowCreated(this, std::bind(&DSDisplayAreaPrivate::__onWindowCreated, this, std::placeholders::_1));
- __zone->registerCallbackWindowDestroy(this, std::bind(&DSDisplayAreaPrivate::__onWindowDestroy, this, std::placeholders::_1));
return true;
}
__displayDeviceHWCWindowList.push_back(__displayDeviceHWC->makeHWCWindow());
}
-void DSDisplayAreaPrivate::__onWindowDestroy(std::shared_ptr<DSWindow> window)
-{
- // TODO: think about using unordered_map
- for (auto renderView : __renderViewList) {
- auto tmpWindow = renderView->getWindow();
- if (tmpWindow.get() == window.get()) {
- __renderViewList.remove(renderView);
- renderView.reset();
- break;
- }
- }
-}
-
void DSDisplayAreaPrivate::__onEventIdleEnterer(void *data)
{
//DSLOG_INF("DSDisplayAreaPrivate", "__onEventIdleEnterer");
private:
void __onWindowCreated(std::shared_ptr<DSWindow> window);
- void __onWindowDestroy(std::shared_ptr<DSWindow> window);
void __onEventIdleEnterer(void *data);
std::shared_ptr<IDSOutput> __output;