2021-07-24 02:37:17 +00:00
|
|
|
package androidx.core.graphics;
|
|
|
|
|
|
|
|
import android.graphics.Matrix;
|
|
|
|
import android.graphics.Shader;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: Shader.kt */
|
|
|
|
public final class ShaderKt {
|
|
|
|
public static final void transform(Shader shader, Function1<? super Matrix, Unit> function1) {
|
2021-09-21 07:33:49 +00:00
|
|
|
m.checkNotNullParameter(shader, "<this>");
|
|
|
|
m.checkNotNullParameter(function1, "block");
|
2021-07-24 02:37:17 +00:00
|
|
|
Matrix matrix = new Matrix();
|
|
|
|
shader.getLocalMatrix(matrix);
|
|
|
|
function1.invoke(matrix);
|
|
|
|
shader.setLocalMatrix(matrix);
|
|
|
|
}
|
|
|
|
}
|