19 lines
608 B
Java
19 lines
608 B
Java
|
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) {
|
||
|
m.checkParameterIsNotNull(shader, "$this$transform");
|
||
|
m.checkParameterIsNotNull(function1, "block");
|
||
|
Matrix matrix = new Matrix();
|
||
|
shader.getLocalMatrix(matrix);
|
||
|
function1.invoke(matrix);
|
||
|
shader.setLocalMatrix(matrix);
|
||
|
}
|
||
|
}
|