public class

DefaultSurfaceProcessor.Factory

extends java.lang.Object

 java.lang.Object

↳androidx.camera.core.processing.DefaultSurfaceProcessor.Factory

Overview

Factory class that produces DefaultSurfaceProcessor.

This is for working around the limit that OpenGL cannot be initialized in unit tests.

Summary

Methods
public static SurfaceProcessorInternalnewInstance(DynamicRange dynamicRange)

Creates a new DefaultSurfaceProcessor with no-op shader.

public static voidsetSupplier(Function<DynamicRange, SurfaceProcessorInternal> supplier)

Overrides the DefaultSurfaceProcessor supplier for testing.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public static SurfaceProcessorInternal newInstance(DynamicRange dynamicRange)

Creates a new DefaultSurfaceProcessor with no-op shader.

public static void setSupplier(Function<DynamicRange, SurfaceProcessorInternal> supplier)

Overrides the DefaultSurfaceProcessor supplier for testing.