提交 70541313 编写于 作者: Z Zhouyj_zju 提交者: Zhouyj

fixed ad00dc56 from https://gitee.com/Zhouyj_zju/graphic_ui/pulls/817

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>
上级 1e846b63
......@@ -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.
先完成此消息的编辑!
想要评论请 注册