Change-Id: Ia4003f15101bcd1261f927b6497ff54fc42132fc
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
return nullptr;
}
+DSWaylandSurface *DSWaylandCompositor::getSurface(struct ::wl_resource *surface)
+{
+ for (auto s : __surfaceList)
+ {
+ if (s->getWlResource() == surface)
+ {
+ return s.get();
+ }
+ }
+
+ return nullptr;
+}
+
void DSWaylandCompositor::sendSurfaceDestroy(DSWaylandSurface *dswSurface)
{
for (auto s : __surfaceList)
#include <mutex>
struct wl_display;
+struct wl_resource;
namespace display_server
{
IDSWaylandShell *getShell(void);
DSWaylandSurface *getSurface(uint32_t id);
+ DSWaylandSurface *getSurface(struct ::wl_resource *surface);
void sendSurfaceDestroy(DSWaylandSurface *dswSurface);
void regionDestroy(DSWaylandRegion *dswRegion);