projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store VisualUrl's hash result, and reuse it
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
visuals
/
visual-url.h
diff --git
a/dali-toolkit/internal/visuals/visual-url.h
b/dali-toolkit/internal/visuals/visual-url.h
index
08a276a
..
941d0b8
100644
(file)
--- a/
dali-toolkit/internal/visuals/visual-url.h
+++ b/
dali-toolkit/internal/visuals/visual-url.h
@@
-2,7
+2,7
@@
#define DALI_TOOLKIT_INTERNAL_VISUAL_URL_H
/*
#define DALI_TOOLKIT_INTERNAL_VISUAL_URL_H
/*
- * Copyright (c) 202
1
Samsung Electronics Co., Ltd.
+ * Copyright (c) 202
2
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-90,6
+90,12
@@
public:
const std::string& GetUrl() const;
/**
const std::string& GetUrl() const;
/**
+ * Get the hash value of full URL
+ * @return The hash value of url
+ */
+ const std::uint64_t& GetUrlHash() const;
+
+ /**
* Get the visual type of the URL
* @return The visual type of the URL
*/
* Get the visual type of the URL
* @return The visual type of the URL
*/
@@
-154,6
+160,8
@@
private:
std::string mUrl;
Type mType;
ProtocolType mLocation;
std::string mUrl;
Type mType;
ProtocolType mLocation;
+
+ mutable std::uint64_t mUrlHash;
};
} // namespace Internal
};
} // namespace Internal