/frameworks/base/opengl/tools/glgen/stubs/gles11/ |
glShaderSource.cpp | 2 /* void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint * length ) */ 6 (JNIEnv *_env, jobject _this, jint shader, jstring string) { 15 glShaderSource(shader, 1, strings, 0);
|
glGetProgramInfoLog.cpp | 3 /* void glGetProgramInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */ 6 android_glGetProgramInfoLog (JNIEnv *_env, jobject _this, jint shader) { 10 glGetProgramiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 17 glGetProgramInfoLog(shader, infoLen, NULL, buf);
|
glGetShaderInfoLog.cpp | 3 /* void glGetShaderInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */ 6 android_glGetShaderInfoLog (JNIEnv *_env, jobject _this, jint shader) { 10 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 17 glGetShaderInfoLog(shader, infoLen, NULL, buf);
|
glGetShaderInfoLog.java | 17 // C function void glGetShaderInfoLog( GLuint shader, GLsizei maxLength, GLsizei * length, 21 int shader
|
glShaderSource.java | 17 // C function void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint* length ) 20 int shader,
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
ComposeShader.java | 21 /** A subclass of shader that returns the composition of two other shaders, combined by 24 public class ComposeShader extends Shader { 25 /** Create a new compose shader, given shaders A, B, and a combining mode. 26 When the mode is applied, it will be given the result from shader A as its 27 "dst", and the result of from shader B as its "src". 28 @param shaderA The colors from this shader are seen as the "dst" by the mode 29 @param shaderB The colors from this shader are seen as the "src" by the mode 33 public ComposeShader(Shader shaderA, Shader shaderB, Xfermode mode) { 34 // FIXME Implement shader [all...] |
Shader.java | 22 * Shader is the based class for objects that return horizontal spans of colors 23 * during drawing. A subclass of Shader is installed in a Paint calling 24 * paint.setShader(shader). After that any object (other than a bitmap) that is 25 * drawn with that paint will get its color(s) from the shader. 27 public abstract class Shader { 33 * replicate the edge color if the shader draws outside of its 38 * repeat the shader's image horizontally and vertically 42 * repeat the shader's image horizontally and vertically, alternating 54 * Return true if the shader has a non-identity local matrix. 55 * @param localM If not null, it is set to the shader's local matrix [all...] |
BitmapShader.java | 21 public class BitmapShader extends Shader { 27 * Call this to create a new shader that will draw with a bitmap. 29 * @param bitmap The bitmap to use inside the shader
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ShaderTest.java | 22 import android.graphics.Shader; 29 @TestTargetClass(android.graphics.Shader.class) 33 method = "Shader", 37 new Shader(); 58 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); local 61 shader.setLocalMatrix(m); 62 assertFalse(shader.getLocalMatrix(m)) [all...] |
ComposeShaderTest.java | 31 import android.graphics.Shader; 34 import android.graphics.Shader.TileMode; 48 args = {Shader.class, Shader.class, PorterDuff.Mode.class} 52 Color.GREEN, Color.BLUE, Shader.TileMode.CLAMP); 54 Color.GREEN, Color.RED, Shader.TileMode.CLAMP); 55 ComposeShader shader = new ComposeShader(blueGradient, redGradient, PorterDuff.Mode.SCREEN); local 60 paint.setShader(shader); 85 args = {Shader.class, Shader.class, Xfermode.class 98 ComposeShader shader = new ComposeShader(blueShader, redShader, xferMode); local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
ComposeShader.java | 19 /** A subclass of shader that returns the coposition of two other shaders, combined by 22 public class ComposeShader extends Shader { 23 /** Create a new compose shader, given shaders A, B, and a combining mode. 24 When the mode is applied, it will be given the result from shader A as its 25 "dst", and the result of from shader B as its "src". 26 @param shaderA The colors from this shader are seen as the "dst" by the mode 27 @param shaderB The colors from this shader are seen as the "src" by the mode 31 public ComposeShader(Shader shaderA, Shader shaderB, Xfermode mode) { 36 /** Create a new compose shader, given shaders A, B, and a combining PorterDuff mode [all...] |
Shader.java | 20 * Shader is the based class for objects that return horizontal spans of colors 21 * during drawing. A subclass of Shader is installed in a Paint calling 22 * paint.setShader(shader). After that any object (other than a bitmap) that is 23 * drawn with that paint will get its color(s) from the shader. 25 public class Shader { 32 * replicate the edge color if the shader draws outside of its 37 * repeat the shader's image horizontally and vertically 41 * repeat the shader's image horizontally and vertically, alternating 53 * Return true if the shader has a non-identity local matrix. 54 * @param localM If not null, it is set to the shader's local matrix [all...] |
BitmapShader.java | 19 public class BitmapShader extends Shader { 25 * Call this to create a new shader that will draw with a bitmap. 27 * @param bitmap The bitmap to use inside the shader
|
RadialGradient.java | 19 public class RadialGradient extends Shader { 21 /** Create a shader that draws a radial gradient given the center and radius. 29 @param tile The Shader tiling mode 45 /** Create a shader that draws a radial gradient given the center and radius. 51 @param tile The Shader tiling mode
|
/external/skia/src/animator/ |
SkDrawShader.cpp | 40 if (fPaint->shader != (SkDrawShader*) -1) 42 fPaint->shader = this; 47 void SkDrawShader::addPostlude(SkShader* shader) { 49 shader->setLocalMatrix(matrix->getMatrix()); 67 if (fPaint->shader != (SkDrawShader*) -1) 69 fPaint->shader = this; 78 // note: bitmap shader now supports independent tile modes for X and Y 84 SkShader* shader = SkShader::CreateBitmapShader(image->fBitmap, 87 SkAutoTDelete<SkShader> autoDel(shader); 88 addPostlude(shader); [all...] |
/frameworks/base/core/jni/android/graphics/ |
Shader.cpp | 44 static void Shader_destructor(JNIEnv* env, jobject, SkShader* shader) 46 shader->safeUnref(); 49 static bool Shader_getLocalMatrix(JNIEnv* env, jobject, const SkShader* shader, SkMatrix* matrix) 51 return shader ? shader->getLocalMatrix(matrix) : false; 54 static void Shader_setLocalMatrix(JNIEnv* env, jobject, SkShader* shader, const SkMatrix* matrix) 56 if (shader) { 58 shader->resetLocalMatrix(); 61 shader->setLocalMatrix(*matrix); 102 SkShader* shader = SkGradientShader::CreateLinear(pts local 152 SkShader* shader = SkGradientShader::CreateRadial(center, local 201 SkShader* shader = SkGradientShader::CreateSweep(SkFloatToScalar(x), local [all...] |
/external/skia/include/core/ |
SkComposeShader.h | 27 This subclass of shader returns the coposition of two other shaders, combined by 32 /** Create a new compose shader, given shaders A, B, and a combining xfermode mode. 33 When the xfermode is called, it will be given the result from shader A as its 34 "dst", and the result of from shader B as its "src". 36 @param shaderA The colors from this shader are seen as the "dst" by the xfermode 37 @param shaderB The colors from this shader are seen as the "src" by the xfermode
|
SkShader.h | 31 A subclass of SkShader is installed in a SkPaint calling paint.setShader(shader). After that 33 shader. 40 /** Return true if the shader has a non-identity local matrix. 41 @param localM Optional: If not null, return the shader's local matrix 42 @return true if the shader has a non-identity local matrix. 45 /** Set the shader's local matrix. 46 @param localM The shader's new local matrix. 49 /** Reset the shader's local matrix to identity. 54 kClamp_TileMode, //!< replicate the edge color if the shader draws outside of its original bounds 55 kRepeat_TileMode, //!< repeat the shader's image horizontally and verticall [all...] |
SkColorFilter.h | 26 /** Called with a scanline of colors, as if there was a shader installed. 28 Note: shader and result may be the same buffer. 29 @param src array of colors, possibly generated by a shader 35 /** Called with a scanline of colors, as if there was a shader installed. 37 Note: shader and result may be the same buffer. 38 @param src array of colors, possibly generated by a shader 42 virtual void filterSpan16(const uint16_t shader[], int count, 99 SkFilterShader(SkShader* shader, SkColorFilter* filter);
|
/frameworks/base/opengl/tests/gl2_jni/jni/ |
gl_code.cpp | 38 GLuint shader = glCreateShader(shaderType); local 39 if (shader) { 40 glShaderSource(shader, 1, &pSource, NULL); 41 glCompileShader(shader); 43 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); 46 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 50 glGetShaderInfoLog(shader, infoLen, NULL, buf); 51 LOGE("Could not compile shader %d:\n%s\n", 55 glDeleteShader(shader); 56 shader = 0 [all...] |
/frameworks/base/opengl/tests/gldual/jni/ |
gl_code.cpp | 38 GLuint shader = glCreateShader(shaderType); local 39 if (shader) { 40 glShaderSource(shader, 1, &pSource, NULL); 41 glCompileShader(shader); 43 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); 46 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 50 glGetShaderInfoLog(shader, infoLen, NULL, buf); 51 LOGE("Could not compile shader %d:\n%s\n", 55 glDeleteShader(shader); 56 shader = 0 [all...] |
/ndk/samples/hello-gl2/jni/ |
gl_code.cpp | 58 GLuint shader = glCreateShader(shaderType); local 59 if (shader) { 60 glShaderSource(shader, 1, &pSource, NULL); 61 glCompileShader(shader); 63 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); 66 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 70 glGetShaderInfoLog(shader, infoLen, NULL, buf); 71 LOGE("Could not compile shader %d:\n%s\n", 75 glDeleteShader(shader); 76 shader = 0 [all...] |
/external/skia/include/effects/ |
SkGradientShader.h | 31 /** Returns a shader that generates a linear gradient between the two 34 CreateLinear returns a shader with a reference count of 1. 35 The caller should decrement the shader's reference count when done with the shader. 53 /** Returns a shader that generates a radial gradient given the center and radius. 55 CreateRadial returns a shader with a reference count of 1. 56 The caller should decrement the shader's reference count when done with the shader. 75 /** Returns a shader that generates a radial gradient given the start position, start radius, end position and end radius. 77 CreateTwoPointRadial returns a shader with a reference count of 1 [all...] |
/external/skia/src/core/ |
SkColorFilter.cpp | 32 SkFilterShader::SkFilterShader(SkShader* shader, SkColorFilter* filter) 34 fShader = shader; shader->ref(); 75 // if the filter doesn't support 16bit, clear the matching bit in the shader 79 // if the filter might change alpha, clear the opaque flag in the shader
|
/external/skia/src/effects/ |
SkColorFilters.cpp | 51 virtual void filterSpan(const SkPMColor shader[], int count, 56 virtual void filterSpan16(const uint16_t shader[], int count, 88 virtual void filterSpan(const SkPMColor shader[], int count, 90 SkBlitRow::Color32(result, shader, count, fPMColor); 93 virtual void filterSpan16(const uint16_t shader[], int count, 127 virtual void filterSpan(const SkPMColor shader[], int count, 133 result[i] = proc(color, shader[i]); 137 virtual void filterSpan16(const uint16_t shader[], int count, 145 result[i] = proc16(color, shader[i]); 250 virtual void filterSpan(const SkPMColor shader[], int count [all...] |