X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fplatform-abstraction.h;h=dc5770859b4db66ae5f7b0859c589aa7aef71720;hb=3cc0f2d0472ec32adb2cf40a4c00dafbda04641c;hp=ed055125bb692011bdf8045b522befcf58710282;hpb=fd9e293d3061867757984a0e2ffb913173a8aa6f;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/platform-abstraction.h b/dali/integration-api/platform-abstraction.h index ed05512..dc57708 100644 --- a/dali/integration-api/platform-abstraction.h +++ b/dali/integration-api/platform-abstraction.h @@ -114,6 +114,18 @@ public: virtual void LoadResource(const ResourceRequest& request) = 0; /** + * Request a resource from the native filesystem. This is a synchronous request, i.e. + * it will block the main loop whilst executing. It should therefore be used sparingly. + * + * Multi-threading note: this method will be called from the main thread only i.e. not + * from within the Core::Render() method. + * @param[in] resourceType The type of resource to load + * @param[in] resourcePath The path to the resource + * @return A pointer to a ref-counted resource + */ + virtual ResourcePointer LoadResourceSynchronously( const ResourceType& resourceType, const std::string& resourcePath ) = 0; + + /** * Request that a resource be saved to the native filesystem. * This is an asynchronous request. */