Class LocalMatrixShader

java.lang.Object
icyllis.arc3d.sketch.shaders.LocalMatrixShader
All Implemented Interfaces:
RefCounted, Shader

public final class LocalMatrixShader extends Object implements Shader
  • Method Details

    • ref

      public void ref()
      Description copied from interface: RefCounted
      Increases the reference count by 1.
      Specified by:
      ref in interface RefCounted
      Specified by:
      ref in interface Shader
    • unref

      public void unref()
      Description copied from interface: RefCounted
      Decreases the reference count by 1.
      Specified by:
      unref in interface RefCounted
      Specified by:
      unref in interface Shader
    • isTriviallyCounted

      public boolean isTriviallyCounted()
      Description copied from interface: Shader
      A return value of true means that its ref/unref is unnecessary, for example, they are just no op. So callers can perform some optimizations. Subclass can override this method to indicate that an instance is trivially counted. For the same instance, the return value of this method must remain unchanged.
      Specified by:
      isTriviallyCounted in interface Shader
    • isOpaque

      public boolean isOpaque()
      Description copied from interface: Shader
      Returns true if the shader is guaranteed to produce only opaque colors, subject to the Paint using the shader to apply an opaque alpha value. Subclasses should override this to allow some optimizations.
      Specified by:
      isOpaque in interface Shader
    • isConstant

      public boolean isConstant()
      Returns true if the shader is guaranteed to produce only a single color. Subclasses can override this to allow loop-hoisting optimization.
      Specified by:
      isConstant in interface Shader
    • getBase

      @RawPtr public @RawPtr Shader getBase()
    • getLocalMatrix

      public Matrixc getLocalMatrix()