Make TextureHash as buffer 25/271625/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 23 Feb 2022 16:54:23 +0000 (01:54 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 23 Feb 2022 16:54:23 +0000 (01:54 +0900)
commita0f2cce9e7bd65a0d7c9b6a6d125b5cf0af1d21e
tree0ea4f2c77860cb16f7c8387b8ad7e9c9f78582c5
parent3a1be394aa3551032f262fc329bf3b1b95c8bd24
Make TextureHash as buffer

Previous hashTarget use std::string, and Dali::CalculateHash function use
.c_str() internally. This logic will ignore zero values.
For example, when desired_width is 256, TextureHash result will ignore
whole informations about desired_size, fittingMode, maskId, etc.

This patch Fix that problem so we can seperate un-matched textures
and also reduce hash collision.

Change-Id: I95526f7144991e630ac0d19abaefc50175b4317a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/texture-manager/texture-cache-manager.cpp