1package com.bumptech.glide.load;
2
3import com.bumptech.glide.load.engine.Resource;
4
5/**
6 * A noop Transformation that simply returns the given resource.
7 */
8public class UnitTransformation<T> implements Transformation<T> {
9    private static final UnitTransformation TRANSFORMATION = new UnitTransformation();
10
11    @SuppressWarnings("unchecked")
12    public static <T> UnitTransformation<T> get() {
13        return TRANSFORMATION;
14    }
15
16    @Override
17    public Resource<T> transform(Resource<T> resource, int outWidth, int outHeight) {
18        return resource;
19    }
20
21    @Override
22    public String getId() {
23        return "";
24    }
25}
26