Avoid SkTMax in sksl
Change-Id: Id549b9a398b7fe52b08b89c0d50db79953434ba5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/216616 Auto-Submit: Brian Osman <brianosman@google.com> Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
e3bd673fbf
commit
7df8fff2a3
@ -359,7 +359,7 @@ void ByteCodeGenerator::writeBinaryExpression(const BinaryExpression& b) {
|
|||||||
this->write(ByteCodeInstruction::kDup);
|
this->write(ByteCodeInstruction::kDup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int count = SkTMax(SlotCount(lType), SlotCount(rType));
|
int count = std::max(SlotCount(lType), SlotCount(rType));
|
||||||
switch (op) {
|
switch (op) {
|
||||||
case Token::Kind::EQEQ:
|
case Token::Kind::EQEQ:
|
||||||
this->writeTypedInstruction(b.fLeft->fType, ByteCodeInstruction::kCompareIEQ,
|
this->writeTypedInstruction(b.fLeft->fType, ByteCodeInstruction::kCompareIEQ,
|
||||||
|
Loading…
Reference in New Issue
Block a user