All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.humbleui.skija.resources.CachingResourceProvider Maven / Gradle / Ivy

package io.github.humbleui.skija.resources;

import java.lang.ref.*;
import org.jetbrains.annotations.*;
import io.github.humbleui.skija.*;
import io.github.humbleui.skija.impl.*;

public class CachingResourceProvider extends ResourceProvider {
    static { Library.staticLoad(); }

    @ApiStatus.Internal
    public CachingResourceProvider(long ptr) {
        super(ptr);
    }

    @NotNull @Contract("_ -> new")
    public static CachingResourceProvider make(@NotNull ResourceProvider resourceProvider) {
        assert resourceProvider != null : "Can’t CachingResourceProvider::make with resourceProvider == null";
        Stats.onNativeCall();
        return new CachingResourceProvider(_nMake(Native.getPtr(resourceProvider)));
    }

    @ApiStatus.Internal public static native long _nMake(long resourceProviderPtr);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy