已合并
sync composite layer code: route SetLayerTopForHWC through per-context render interface #31978
LyBbq创建于 8月5日
sync composite layer code: route SetLayerTopForHWC through per-context render interface #31978
已合并
共 1 个文件变更+5-1
| @@ -73,7 +73,11 @@ bool RSCompositeLayerUtils::CreateCompositeLayer() | |||
| 73 | surface->SetQueueSize(COMPOSITE_SURFACE_SIZE); | 73 | surface->SetQueueSize(COMPOSITE_SURFACE_SIZE); |
| 74 | textureExport_ = std::make_shared<RSTextureExport>(rootNode_, surfaceId); | 74 | textureExport_ = std::make_shared<RSTextureExport>(rootNode_, surfaceId); |
| 75 | textureExport_->DoTextureExport(); | 75 | textureExport_->DoTextureExport(); |
| 76 | - RSInterfaces::GetInstance().SetLayerTopForHWC(compositeNode_->GetId(), true, topLayerZOrder_); | 76 | + if (auto rsUIContext = compositeNode_->GetRSUIContext()) { |
| 77 | + if (auto renderInterface = rsUIContext->GetRSRenderInterface()) { | ||
| 78 | + renderInterface->SetLayerTopForHWC(compositeNode_->GetId(), true, topLayerZOrder_); | ||
| 79 | + } | ||
| 80 | + } | ||
| 77 | return true; | 81 | return true; |
| 78 | #else | 82 | #else |
| 79 | return false; | 83 | return false; |