已合并
fix SetCacheDir: early return on empty path and apply cache dir in non-uniform-render mode #31456
LyBbq创建于 7月21日
fix SetCacheDir: early return on empty path and apply cache dir in non-uniform-render mode #31456
已合并
共 1 个文件变更+6-3
| @@ -623,11 +623,14 @@ void RSUIDirector::SetDVSyncUpdate(uint64_t dvsyncTime) | |||
| 623 | void RSUIDirector::SetCacheDir(const std::string& cacheFilePath) | 623 | void RSUIDirector::SetCacheDir(const std::string& cacheFilePath) |
| 624 | { | 624 | { |
| 625 | cacheDir_ = cacheFilePath; | 625 | cacheDir_ = cacheFilePath; |
| 626 | -#ifdef RS_MODIFIERS_DRAW_ENABLE | 626 | + if (cacheDir_.empty()) { |
| 627 | - if (rsUIContext_ == nullptr) { | ||
| 628 | return; | 627 | return; |
| 629 | } | 628 | } |
| 630 | - if (cacheDir_.empty()) { | 629 | + if (!isUniRenderEnabled_) { |
| 630 | + RSRenderThread::Instance().SetCacheDir(cacheDir_); | ||
| 631 | + } | ||
| 632 | + | ||
| 633 | + if (rsUIContext_ == nullptr) { | ||
| 631 | return; | 634 | return; |
| 632 | } | 635 | } |
| 633 | if (!RSSystemProperties::GetHybridRenderCanvasEnabled()) { | 636 | if (!RSSystemProperties::GetHybridRenderCanvasEnabled()) { |