blob: 3959598b8cceffa56e222dde744ee084199e89d0 [file] [log] [blame]
package com.airbnb.lottie.model.layer;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.RectF;
import com.airbnb.lottie.LottieDrawable;
public class NullLayer extends BaseLayer {
NullLayer(LottieDrawable lottieDrawable, CompositionLayer compositionLayer, Layer layerModel) {
super(lottieDrawable, compositionLayer, layerModel);
}
@Override void drawLayer(Canvas canvas, Matrix parentMatrix, int parentAlpha) {
// Do nothing.
}
@Override public void getBounds(RectF outBounds, Matrix parentMatrix, boolean applyParents) {
super.getBounds(outBounds, parentMatrix, applyParents);
outBounds.set(0, 0, 0, 0);
}
}