提交 ad00dc56 编写于 作者: Z Zhouyj_zju

Description: config defaultmax cahce entry num

IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I61RUK
Feature or Bugfix: Bugfix
Binary Source:No
Signed-off-by: Nzhouyj <zhouyuanjie1@huawei.com>
上级 8bd15c29
......@@ -91,7 +91,7 @@ CacheManager& CacheManager::GetInstance()
RetCode CacheManager::Init(uint16_t size)
{
if ((size == 0) || (size > MAX_CACHE_ENTRY_NUM)) {
if ((size == 0) || (size > DEFAULT_MAX_CACHE_ENTRY_NUM)) {
return RetCode::FAIL;
}
Reset();
......
......@@ -103,7 +103,6 @@ private:
static constexpr uint8_t AGING_INTERVAL = 1;
static constexpr uint8_t LIFE_GAIN_INTERVAL = 1;
static constexpr uint16_t LIFE_LIMIT = 1000;
static constexpr uint8_t MAX_CACHE_ENTRY_NUM = 64;
};
} // namespace OHOS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册