const ResourceId newId = ++(mImpl->mNextId);
Dali::ImageAttributes imageAttributes = Dali::ImageAttributes::New(bitmap->GetImageWidth(), bitmap->GetImageHeight(), bitmap->GetPixelFormat());
- ResourceTypePath typePath(BitmapResourceType(imageAttributes), "");
-
+ BitmapResourceType bitmapResourceType(imageAttributes); // construct first as no copy ctor (needed to bind ref to object)
+ ResourceTypePath typePath(bitmapResourceType, "");
newTicket = new ImageTicket(*this, newId, typePath);
newTicket->mAttributes = imageAttributes;
newTicket->LoadingSucceeded();
ImageTicketPtr newTicket;
const ResourceId newId = ++(mImpl->mNextId);
-
- ResourceTypePath typePath(NativeImageResourceType(), "");
+ NativeImageResourceType nativeImageResourceType; // construct first as no copy ctor (needed to bind ref to object)
+ ResourceTypePath typePath(nativeImageResourceType, "");
newTicket = new ImageTicket(*this, newId, typePath);
newTicket->mAttributes = ImageAttributes::New(resourceData.GetWidth(),
resourceData.GetHeight(),
const ResourceId newId = ++(mImpl->mNextId);
Dali::ImageAttributes imageAttributes = Dali::ImageAttributes::New(width, height, pixelFormat );
- ResourceTypePath typePath(RenderTargetResourceType(imageAttributes), "");
+ RenderTargetResourceType renderTargetResourceType(imageAttributes) ; // construct first as no copy ctor (needed to bind ref to object)
+ ResourceTypePath typePath(renderTargetResourceType, "");
newTicket = new ImageTicket(*this, newId, typePath);
newTicket->mAttributes = imageAttributes;
newTicket->LoadingSucceeded();
const ResourceId newId = ++(mImpl->mNextId);
Dali::ImageAttributes imageAttributes = Dali::ImageAttributes::New(nativeImage.GetWidth(), nativeImage.GetHeight(), nativeImage.GetPixelFormat() );
- ResourceTypePath typePath(RenderTargetResourceType(imageAttributes), "");
+ RenderTargetResourceType renderTargetResourceType(imageAttributes); // construct first as no copy ctor (needed to bind ref to object)
+ ResourceTypePath typePath(renderTargetResourceType, "");
newTicket = new ImageTicket(*this, newId, typePath);
newTicket->mAttributes = imageAttributes;
newTicket->LoadingSucceeded();
const ResourceId newId = ++(mImpl->mNextId);
Dali::ImageAttributes imageAttributes = Dali::ImageAttributes::New( width, height, pixelformat);
- ResourceTypePath typePath(BitmapResourceType(imageAttributes), "");
+ BitmapResourceType bitmapResourceType(imageAttributes); // construct first as no copy ctor (needed to bind ref to object)
+ ResourceTypePath typePath(bitmapResourceType, "");
newTicket = new ImageTicket(*this, newId, typePath);
mImpl->mTickets.insert(TicketPair(newId, newTicket.Get()));
{
ResourceTicketPtr newTicket;
const ResourceId newId = ++(mImpl->mNextId);
- ResourceTypePath typePath(MeshResourceType(), "");
+ MeshResourceType meshResourceType; // construct first as no copy ctor (needed to bind ref to object)
+ ResourceTypePath typePath(meshResourceType, "");
newTicket = new ResourceTicket(*this, newId, typePath);
mImpl->mTickets.insert(TicketPair(newId, newTicket.Get()));