1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

[gfx] Cherry-pick chromium:1864587

This commit is contained in:
Geoff Lang
2024-01-24 16:38:28 +01:00
committed by roytam1
parent ce3cc6b74d
commit 580e04c8a8
@@ -186,10 +186,10 @@ bool VariablePacker::CheckVariablesWithinPackingLimits(
break;
}
topNonFullRow_ += GetNumRows(variable.type) * variable.elementCount();
}
if (topNonFullRow_ > maxRows_) {
return false;
if (topNonFullRow_ > maxRows_) {
return false;
}
}
// Packs the 3 column variables.
@@ -200,10 +200,10 @@ bool VariablePacker::CheckVariablesWithinPackingLimits(
break;
}
num3ColumnRows += GetNumRows(variable.type) * variable.elementCount();
}
if (topNonFullRow_ + num3ColumnRows > maxRows_) {
return false;
if (topNonFullRow_ + num3ColumnRows > maxRows_) {
return false;
}
}
fillColumns(topNonFullRow_, num3ColumnRows, 0, 3);