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