Skip to content

Commit

Permalink
Change the assumption that there's always at least one ambient layer
Browse files Browse the repository at this point in the history
At Samsung's request, remove the logic that assumed there is always
at least one layer needed for ambient memory calculations.
  • Loading branch information
robcos committed Jan 8, 2024
1 parent a4f08ca commit c6a76d4
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ long computeAmbientMemoryFootprint(long screenWidth, long screenHeight) {
perConfigurationDynamicResources.computeMaximumResourceUsage(
visitor.optionResources);

// There's always at least one layer, even if all the Part* nodes are hidden.
if (visitor.numLayers == 0) {
visitor.numLayers = 1;
}

// In V1 we support a maximum of 2 layers and 2 clocks.
if (evaluationSettings.applyV1OffloadLimitations()) {
visitor.numLayers = min(visitor.numLayers, 2);
Expand Down

0 comments on commit c6a76d4

Please sign in to comment.