X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-url.h;h=08a276a74ff81f6164ded4bbbf740caa6ffef913;hb=12fc433eba468fe62254c4ebfb04d57697632077;hp=a772bd109456c445a67b8a4a53694fb184128530;hpb=b0faad981257720e1a5fb15af45647f30b669adf;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/visual-url.h b/dali-toolkit/internal/visuals/visual-url.h index a772bd1..08a276a 100644 --- a/dali-toolkit/internal/visuals/visual-url.h +++ b/dali-toolkit/internal/visuals/visual-url.h @@ -38,14 +38,16 @@ public: SVG, GIF, WEBP, - JSON + JSON, + TVG }; enum ProtocolType { LOCAL, ///< file in local file system TEXTURE, ///< texture uploaded to texture manager - REMOTE ///< remote image + REMOTE, ///< remote image + BUFFER ///< encoded image buffer }; /** @@ -111,6 +113,11 @@ public: bool IsLocalResource() const; /** + * @return true if the location is BUFFER, i.e. may contain EncodedImageBuffer + */ + bool IsBufferResource() const; + + /** * @return the location part of the url */ std::string GetLocation() const; @@ -123,6 +130,13 @@ public: static std::string CreateTextureUrl(const std::string& location); /** + * Helper to create a URL of type BUFFER + * @param location the location of the texture + * @return the Url + */ + static std::string CreateBufferUrl(const std::string& location); + + /** * Helper to get a ProtocolType from url * @param url the url of the texture * @return the protocol type @@ -135,6 +149,7 @@ public: * @return the location */ static std::string GetLocation(const std::string& url); + private: std::string mUrl; Type mType;