}
/* DSWaylandSurfacePrivate */
+static uint32_t tizenResIdCnt;
+
DSWaylandSurfacePrivate::DSWaylandSurfacePrivate(DSWaylandSurface *p_ptr)
: DSObjectPrivate(p_ptr),
__p_ptr(p_ptr),
__commitInfo{std::make_shared<DSWaylandSurfaceCommitInfo>()},
__waylandClient(nullptr),
__bufferManager{DSBufferManager::getInstance()},
- __resId(0)
+ __resId(0),
+ __tizenResId(++tizenResIdCnt)
{}
DSWaylandSurfacePrivate::DSWaylandSurfacePrivate(DSWaylandSurface *p_ptr, DSWaylandClient *waylandClient, uint32_t id)
__commitInfo{std::make_shared<DSWaylandSurfaceCommitInfo>()},
__waylandClient(waylandClient),
__bufferManager{DSBufferManager::getInstance()},
- __resId(0)
+ __resId(0),
+ __tizenResId(++tizenResIdCnt)
{
if (id > 0) {
wl_surface::init(waylandClient->wlClient(), (int)id, 4);
return __resId;
}
+uint32_t DSWaylandSurfacePrivate::getTizenResourceId()
+{
+ return __tizenResId;
+}
+
void DSWaylandSurfacePrivate::surface_bind_resource(Resource *resource)
{
}
return priv->getResourceId();
}
+uint32_t DSWaylandSurface::getTizenResourceId()
+{
+ DS_GET_PRIV(DSWaylandSurface);
+
+ return priv->getTizenResourceId();
+}
+
} /* namespace display_server */
~DSWaylandSurfacePrivate() override;
uint32_t getResourceId();
+ uint32_t getTizenResourceId();
protected:
void surface_bind_resource(Resource *resource) override;
DSWaylandClient *__waylandClient;
DSBufferManager *__bufferManager;
uint32_t __resId;
+ uint32_t __tizenResId;
};
} /*namespace display_server */