/frameworks/base/opengl/tests/gldual/jni/ |
D | gl_code.cpp | 38 GLuint shader = glCreateShader(shaderType); in loadShader() local 39 if (shader) { in loadShader() 40 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 41 glCompileShader(shader); in loadShader() 43 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 46 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 50 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 55 glDeleteShader(shader); in loadShader() 56 shader = 0; in loadShader() 60 return shader; in loadShader()
|
/frameworks/base/opengl/tests/gl2_jni/jni/ |
D | gl_code.cpp | 38 GLuint shader = glCreateShader(shaderType); in loadShader() local 39 if (shader) { in loadShader() 40 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 41 glCompileShader(shader); in loadShader() 43 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 46 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 50 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 55 glDeleteShader(shader); in loadShader() 56 shader = 0; in loadShader() 60 return shader; in loadShader()
|
/frameworks/base/core/jni/android/graphics/ |
D | Shader.cpp | 44 static void Shader_destructor(JNIEnv* env, jobject, SkShader* shader) in Shader_destructor() argument 46 shader->safeUnref(); in Shader_destructor() 49 static bool Shader_getLocalMatrix(JNIEnv* env, jobject, const SkShader* shader, SkMatrix* matrix) in Shader_getLocalMatrix() argument 51 return shader ? shader->getLocalMatrix(matrix) : false; in Shader_getLocalMatrix() 54 static void Shader_setLocalMatrix(JNIEnv* env, jobject, SkShader* shader, const SkMatrix* matrix) in Shader_setLocalMatrix() argument 56 if (shader) { in Shader_setLocalMatrix() 58 shader->resetLocalMatrix(); in Shader_setLocalMatrix() 61 shader->setLocalMatrix(*matrix); in Shader_setLocalMatrix() 102 SkShader* shader = SkGradientShader::CreateLinear(pts, in LinearGradient_create1() local 108 ThrowIAE_IfNull(env, shader); in LinearGradient_create1() [all …]
|
D | Paint.cpp | 203 static SkShader* setShader(JNIEnv* env, jobject clazz, SkPaint* obj, SkShader* shader) { in setShader() argument 204 return obj->setShader(shader); in setShader()
|
D | Canvas.cpp | 681 SkShader* shader = SkShader::CreateBitmapShader(*bitmap, in drawBitmapMesh() local 683 tmpPaint.setShader(shader)->safeUnref(); in drawBitmapMesh()
|
/frameworks/base/opengl/tests/gl2_java/src/com/android/gl2java/ |
D | GL2JavaView.java | 96 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 97 if (shader != 0) { in loadShader() 98 GLES20.glShaderSource(shader, source); in loadShader() 99 GLES20.glCompileShader(shader); in loadShader() 101 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 104 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 105 GLES20.glDeleteShader(shader); in loadShader() 106 shader = 0; in loadShader() 109 return shader; in loadShader()
|
/frameworks/base/opengl/tools/glgen/stubs/gles11/ |
D | glGetProgramInfoLog.cpp | 6 android_glGetProgramInfoLog (JNIEnv *_env, jobject _this, jint shader) { in android_glGetProgramInfoLog() argument 10 glGetProgramiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in android_glGetProgramInfoLog() 17 glGetProgramInfoLog(shader, infoLen, NULL, buf); in android_glGetProgramInfoLog()
|
D | glGetShaderInfoLog.cpp | 6 android_glGetShaderInfoLog (JNIEnv *_env, jobject _this, jint shader) { in android_glGetShaderInfoLog() argument 10 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in android_glGetShaderInfoLog() 17 glGetShaderInfoLog(shader, infoLen, NULL, buf); in android_glGetShaderInfoLog()
|
D | glShaderSource.cpp | 6 (JNIEnv *_env, jobject _this, jint shader, jstring string) { in android_glShaderSource() argument 15 glShaderSource(shader, 1, strings, 0); in android_glShaderSource()
|
D | glGetShaderInfoLog.java | 21 int shader in glGetShaderInfoLog() argument
|
D | glShaderSource.java | 20 int shader, in glShaderSource() argument
|
/frameworks/base/opengl/tests/gl2_basic/ |
D | gl2_basic.cpp | 77 GLuint shader = glCreateShader(shaderType); in loadShader() local 78 if (shader) { in loadShader() 79 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 80 glCompileShader(shader); in loadShader() 82 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 85 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 89 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 94 glDeleteShader(shader); in loadShader() 95 shader = 0; in loadShader() 99 return shader; in loadShader()
|
/frameworks/base/opengl/libs/GLES2/ |
D | gl2_api.in | 4 void API_ENTRY(glAttachShader)(GLuint program, GLuint shader) { 5 CALL_GL_API(glAttachShader, program, shader); 61 void API_ENTRY(glCompileShader)(GLuint shader) { 62 CALL_GL_API(glCompileShader, shader); 97 void API_ENTRY(glDeleteShader)(GLuint shader) { 98 CALL_GL_API(glDeleteShader, shader); 112 void API_ENTRY(glDetachShader)(GLuint program, GLuint shader) { 113 CALL_GL_API(glDetachShader, program, shader); 202 void API_ENTRY(glGetShaderiv)(GLuint shader, GLenum pname, GLint* params) { 203 CALL_GL_API(glGetShaderiv, shader, pname, params); [all …]
|
/frameworks/base/opengl/tools/glgen/specs/gles11/ |
D | GLES20.spec | 2 void glAttachShader ( GLuint program, GLuint shader ) 21 void glCompileShader ( GLuint shader ) 33 void glDeleteShader ( GLuint shader ) 38 void glDetachShader ( GLuint program, GLuint shader ) 69 void glGetShaderiv ( GLuint shader, GLenum pname, GLint *params ) 70 void glGetShaderInfoLog ( GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog ) 72 void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) 88 GLboolean glIsShader ( GLuint shader ) 100 void glShaderSource ( GLuint shader )
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLES20.java | 342 int shader in glAttachShader() argument 482 int shader in glCompileShader() argument 609 int shader in glDeleteShader() argument 650 int shader in glDetachShader() argument 1032 int shader, in glGetShaderiv() argument 1041 int shader, in glGetShaderiv() argument 1066 int shader in glGetShaderInfoLog() argument 1091 int shader, in glGetShaderSource() argument 1102 int shader, in glGetShaderSource() argument 1278 int shader in glIsShader() argument [all …]
|
/frameworks/base/opengl/include/GLES2/ |
D | gl2.h | 475 GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader); 494 GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader); 506 GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader); 511 GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader); 541 GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params); 542 GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* le… 544 GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* len… 560 GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader); 572 GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar** st…
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 610 public Shader setShader(Shader shader) { in setShader() argument 612 if (shader != null) in setShader() 613 shaderNative = shader.native_instance; in setShader() 615 mShader = shader; in setShader() 616 return shader; in setShader() 1383 private static native int native_setShader(int native_object, int shader); in native_setShader() argument
|
/frameworks/base/core/jni/ |
D | android_opengl_GLES20.cpp | 164 (JNIEnv *_env, jobject _this, jint program, jint shader) { in android_glAttachShader__II() argument 167 (GLuint)shader in android_glAttachShader__II() 401 (JNIEnv *_env, jobject _this, jint shader) { in android_glCompileShader__I() argument 403 (GLuint)shader in android_glCompileShader__I() 692 (JNIEnv *_env, jobject _this, jint shader) { in android_glDeleteShader__I() argument 694 (GLuint)shader in android_glDeleteShader__I() 790 (JNIEnv *_env, jobject _this, jint program, jint shader) { in android_glDetachShader__II() argument 793 (GLuint)shader in android_glDetachShader__II() 2572 android_glGetProgramInfoLog (JNIEnv *_env, jobject _this, jint shader) { in android_glGetProgramInfoLog() argument 2576 glGetProgramiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in android_glGetProgramInfoLog() [all …]
|
/frameworks/base/graphics/java/android/renderscript/ |
D | RenderScript.java | 173 native int nProgramFragmentCreate2(String shader, int[] params); in nProgramFragmentCreate2() argument 176 native int nProgramVertexCreate2(String shader, int[] params); in nProgramVertexCreate2() argument
|
/frameworks/base/opengl/libs/ |
D | entries.in | 5 GL_ENTRY(void, glAttachShader, GLuint program, GLuint shader) 49 GL_ENTRY(void, glCompileShader, GLuint shader) 71 GL_ENTRY(void, glDeleteShader, GLuint shader) 80 GL_ENTRY(void, glDetachShader, GLuint program, GLuint shader) 186 GL_ENTRY(void, glGetShaderInfoLog, GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) 188 GL_ENTRY(void, glGetShaderSource, GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) 189 GL_ENTRY(void, glGetShaderiv, GLuint shader, GLenum pname, GLint* params) 217 GL_ENTRY(GLboolean, glIsShader, GLuint shader) 304 GL_ENTRY(void, glShaderSource, GLuint shader, GLsizei count, const GLchar** string, const GLint* le…
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | BitmapDrawable.java | 318 Shader shader = state.mPaint.getShader(); in draw() local 319 if (shader == null) { in draw()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 751 /*package*/ static int native_setShader(int native_object, int shader) { in native_setShader() argument 755 return shader; in native_setShader() 758 delegate.mShader = Shader_Delegate.getDelegate(shader); in native_setShader() 760 return shader; in native_setShader()
|
/frameworks/base/graphics/jni/ |
D | android_renderscript_RenderScript.cpp | 1127 nProgramFragmentCreate2(JNIEnv *_env, jobject _this, jstring shader, jintArray params) in nProgramFragmentCreate2() argument 1130 const char* shaderUTF = _env->GetStringUTFChars(shader, NULL); in nProgramFragmentCreate2() 1131 jint shaderLen = _env->GetStringUTFLength(shader); in nProgramFragmentCreate2() 1138 _env->ReleaseStringUTFChars(shader, shaderUTF); in nProgramFragmentCreate2() 1155 nProgramVertexCreate2(JNIEnv *_env, jobject _this, jstring shader, jintArray params) in nProgramVertexCreate2() argument 1158 const char* shaderUTF = _env->GetStringUTFChars(shader, NULL); in nProgramVertexCreate2() 1159 jint shaderLen = _env->GetStringUTFLength(shader); in nProgramVertexCreate2() 1166 _env->ReleaseStringUTFChars(shader, shaderUTF); in nProgramVertexCreate2()
|
/frameworks/base/core/java/android/view/ |
D | View.java | 6991 final Shader fade = scrollabilityCache.shader; in draw() 9505 public Shader shader; field in View.ScrollabilityCache 9536 shader = new LinearGradient(0, 0, 0, 1, 0xFF000000, 0, Shader.TileMode.CLAMP); in ScrollabilityCache() 9538 paint.setShader(shader); in ScrollabilityCache() 9548 shader = new LinearGradient(0, 0, 0, 1, color | 0xFF000000, in setFadeColor() 9551 paint.setShader(shader); in setFadeColor()
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | drawable-resource.jd | 257 <td>Replicates the edge color if the shader draws outside of its original bounds</td></tr> 259 <td>Repeats the shader's image horizontally and vertically.</td></tr> 261 <td>Repeats the shader's image horizontally and vertically, alternating mirror images so that
|