package com.bumptech.glide.load; import com.bumptech.glide.load.engine.Resource; /** * A noop Transformation that simply returns the given resource. */ public class UnitTransformation implements Transformation { private static final UnitTransformation TRANSFORMATION = new UnitTransformation(); @SuppressWarnings("unchecked") public static UnitTransformation get() { return TRANSFORMATION; } @Override public Resource transform(Resource resource, int outWidth, int outHeight) { return resource; } @Override public String getId() { return ""; } }