Metal setup merge (#1616)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Alex Cristici <alex.cristici@gmail.com> Co-authored-by: mwilsnd <mwilsnd@gmail.com> Co-authored-by: Stefan Karschti <stefan.karschti@gmail.com> Co-authored-by: Bart Louwers <bart@emeel.net> Co-authored-by: Alex Cristici <alex@skoon.energy> Co-authored-by: Bart Louwers <bart.louwers@gmail.com> Co-authored-by: Wei Chen <alanchenboy@gmail.com> Co-authored-by: Siarhei Fedartsou <siarhei.fedartsou@gmail.com> Co-authored-by: tdcosta100 <tdcosta100@gmail.com>
This commit is contained in:
@@ -823,6 +823,7 @@ bool RenderOrchestrator::addLayerGroup(LayerGroupBasePtr layerGroup, const bool
|
||||
for (auto it = range.first; it != range.second; ++it) {
|
||||
if (it->second == layerGroup) {
|
||||
found = true;
|
||||
// not added
|
||||
if (replace) {
|
||||
onRemoveLayerGroup(*it->second);
|
||||
it->second = std::move(layerGroup);
|
||||
@@ -849,6 +850,10 @@ bool RenderOrchestrator::removeLayerGroup(const int32_t layerIndex) {
|
||||
return removed;
|
||||
}
|
||||
|
||||
size_t RenderOrchestrator::numLayerGroups() const noexcept {
|
||||
return layerGroupsByLayerIndex.size();
|
||||
}
|
||||
|
||||
int32_t RenderOrchestrator::maxLayerIndex() const {
|
||||
if (!layerGroupsByLayerIndex.empty()) {
|
||||
return layerGroupsByLayerIndex.crbegin()->second->getLayerIndex();
|
||||
@@ -897,7 +902,7 @@ void RenderOrchestrator::updateLayers(gfx::ShaderRegistry& shaders,
|
||||
std::vector<std::unique_ptr<ChangeRequest>> changes;
|
||||
for (const auto& item : renderTree.getLayerRenderItems()) {
|
||||
auto& renderLayer = static_cast<const LayerRenderItem&>(item.get()).layer.get();
|
||||
renderLayer.update(shaders, context, state, renderTree, changes);
|
||||
renderLayer.update(shaders, context, state, updateParameters, renderTree, changes);
|
||||
}
|
||||
addChanges(changes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user