blob: 89db1a73127027038e686db61d9df45b9dec5b6a [file] [log] [blame]
/*
* Copyright 2021 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package org.skia.androidkit;
public enum TileMode {
/**
* Replicate the edge color if the shader draws outside of its
* original bounds.
*/
CLAMP(0),
/**
* Repeat the shader's image horizontally and vertically.
*/
REPEAT(1),
/**
* Repeat the shader's image horizontally and vertically, alternating
* mirror images so that adjacent images always seam.
*/
MIRROR(2),
/**
* Only draw within the original domain, return transparent-black everywhere else.
*/
DECAL(3);
TileMode(int nativeInt) {
this.nativeInt = nativeInt;
}
final int nativeInt;
}