• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 package org.skia.androidkit;
9 
10 public enum TileMode {
11     /**
12      *  Replicate the edge color if the shader draws outside of its
13      *  original bounds.
14      */
15     CLAMP(0),
16 
17     /**
18      *  Repeat the shader's image horizontally and vertically.
19      */
20     REPEAT(1),
21 
22     /**
23      *  Repeat the shader's image horizontally and vertically, alternating
24      *  mirror images so that adjacent images always seam.
25      */
26     MIRROR(2),
27 
28 
29     /**
30      *  Only draw within the original domain, return transparent-black everywhere else.
31      */
32     DECAL(3);
33 
TileMode(int nativeInt)34     TileMode(int nativeInt) {
35         this.nativeInt = nativeInt;
36     }
37     final int nativeInt;
38 }
39