Remove unreferenced canCoerce method.
Change-Id: I87cc0e6d9dc60a0ceaf32c453d2278091ea3c5e5 Bug: skia:12339 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/465393 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
2d76d7760f
commit
259ad78445
@ -1073,16 +1073,6 @@ String MetalCodeGenerator::getMatrixConstructHelper(const AnyConstructor& c) {
|
||||
return name;
|
||||
}
|
||||
|
||||
bool MetalCodeGenerator::canCoerce(const Type& t1, const Type& t2) {
|
||||
if (t1.columns() != t2.columns() || t1.rows() != t2.rows()) {
|
||||
return false;
|
||||
}
|
||||
if (t1.columns() > 1) {
|
||||
return this->canCoerce(t1.componentType(), t2.componentType());
|
||||
}
|
||||
return t1.isFloat() && t2.isFloat();
|
||||
}
|
||||
|
||||
bool MetalCodeGenerator::matrixConstructHelperIsNeeded(const ConstructorCompound& c) {
|
||||
SkASSERT(c.type().isMatrix());
|
||||
|
||||
|
@ -190,8 +190,6 @@ protected:
|
||||
|
||||
bool writeIntrinsicCall(const FunctionCall& c, IntrinsicKind kind);
|
||||
|
||||
bool canCoerce(const Type& t1, const Type& t2);
|
||||
|
||||
void writeConstructorCompound(const ConstructorCompound& c, Precedence parentPrecedence);
|
||||
|
||||
void writeConstructorCompoundVector(const ConstructorCompound& c, Precedence parentPrecedence);
|
||||
|
Loading…
Reference in New Issue
Block a user