Home
last modified time | relevance | path

Searched refs:color0 (Results 1 – 9 of 9) sorted by relevance

/frameworks/native/opengl/libagl/
Ddxt.cpp158 uint16_t color0 = colors & 0xffff; in DXT1HasAlpha() local
161 if (color0 < color1) { in DXT1HasAlpha()
224 uint16_t color0 = colors & 0xffff; in decodeDXT1() local
230 if (color0 != prev_color0 || color1 != prev_color1) { in decodeDXT1()
232 prev_color0 = color0; in decodeDXT1()
235 int r0 = red(color0); in decodeDXT1()
236 int g0 = green(color0); in decodeDXT1()
237 int b0 = blue(color0); in decodeDXT1()
247 c[0] = color0; in decodeDXT1()
258 if (color0 > color1) { in decodeDXT1()
[all …]
/frameworks/base/graphics/java/android/graphics/
DSweepGradient.java76 public SweepGradient(float cx, float cy, int color0, int color1) { in SweepGradient() argument
80 mColor0 = color0; in SweepGradient()
82 init(nativeCreate2(cx, cy, color0, color1)); in SweepGradient()
108 private static native long nativeCreate2(float x, float y, int color0, int color1); in nativeCreate2() argument
DLinearGradient.java80 public LinearGradient(float x0, float y0, float x1, float y1, int color0, int color1, in LinearGradient() argument
87 mColor0 = color0; in LinearGradient()
90 init(nativeCreate2(x0, y0, x1, y1, color0, color1, tile.nativeInt)); in LinearGradient()
118 int color0, int color1, int tileMode); in nativeCreate2() argument
DRadialGradient.java123 int color0, int color1, int tileMode); in nativeCreate2() argument
/frameworks/base/core/jni/android/graphics/
DShader.cpp131 jint color0, jint color1, jint tileMode) in LinearGradient_create2() argument
138 colors[0] = color0; in LinearGradient_create2()
175 jint color0, jint color1, jint tileMode) { in RadialGradient_create2() argument
180 colors[0] = color0; in RadialGradient_create2()
212 int color0, int color1) { in SweepGradient_create2() argument
214 colors[0] = color0; in SweepGradient_create2()
/frameworks/native/cmds/flatland/
DRenderers.cpp96 const float* color0 = genColor(); in drawGradient() local
113 glUniform4fv(mColor0UniformLoc, 1, color0); in drawGradient()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DSweepGradient_Delegate.java61 /*package*/ static long nativeCreate2(float x, float y, int color0, int color1) { in nativeCreate2() argument
62 return nativeCreate1(x, y, new int[] { color0, color1 }, null /*positions*/); in nativeCreate2()
DRadialGradient_Delegate.java68 int color0, int color1, int tileMode) { in nativeCreate2() argument
69 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/, in nativeCreate2()
DLinearGradient_Delegate.java70 int color0, int color1, int tileMode) { in nativeCreate2() argument
72 x0, y0, x1, y1, new int[] { color0, color1}, null /*positions*/, in nativeCreate2()