/frameworks/base/libs/hwui/jni/ |
D | Shader.cpp | 53 static void Shader_safeUnref(SkShader* shader) { in Shader_safeUnref() argument 54 SkSafeUnref(shader); in Shader_safeUnref() 77 sk_sp<SkShader> shader = image->makeShader( in BitmapShader_constructor() local 79 ThrowIAE_IfNull(env, shader.get()); in BitmapShader_constructor() 82 shader = shader->makeWithLocalMatrix(*matrix); in BitmapShader_constructor() 85 return reinterpret_cast<jlong>(shader.release()); in BitmapShader_constructor() 121 sk_sp<SkShader> shader(SkGradientShader::MakeLinear(pts, &colors[0], in LinearGradient_create() local 124 ThrowIAE_IfNull(env, shader); in LinearGradient_create() 128 shader = shader->makeWithLocalMatrix(*matrix); in LinearGradient_create() 131 return reinterpret_cast<jlong>(shader.release()); in LinearGradient_create() [all …]
|
/frameworks/native/libs/renderengine/gl/filters/ |
D | GenericProgram.cpp | 66 const GLuint shader = glCreateShader(type); in compileShader() local 67 if (shader == 0) { in compileShader() 72 glShaderSource(shader, 1, &charSrc, nullptr); in compileShader() 73 glCompileShader(shader); in compileShader() 76 glGetShaderiv(shader, GL_COMPILE_STATUS, &isCompiled); in compileShader() 79 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &maxLength); in compileShader() 82 glGetShaderInfoLog(shader, maxLength, &maxLength, errorLog.data()); in compileShader() 83 glDeleteShader(shader); in compileShader() 87 return shader; in compileShader()
|
/frameworks/native/opengl/tests/gldual/jni/ |
D | gl_code.cpp | 43 GLuint shader = glCreateShader(shaderType); in loadShader() local 44 if (shader) { in loadShader() 45 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 46 glCompileShader(shader); in loadShader() 48 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 51 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 55 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 60 glDeleteShader(shader); in loadShader() 61 shader = 0; in loadShader() 65 return shader; in loadShader()
|
/frameworks/native/opengl/tests/gl2_jni/jni/ |
D | gl_code.cpp | 43 GLuint shader = glCreateShader(shaderType); in loadShader() local 44 if (shader) { in loadShader() 45 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 46 glCompileShader(shader); in loadShader() 48 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 51 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 55 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 60 glDeleteShader(shader); in loadShader() 61 shader = 0; in loadShader() 65 return shader; in loadShader()
|
/frameworks/native/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/native/opengl/tools/glgen/stubs/gles11/ |
D | glGetShaderSource.cpp | 4 …(JNIEnv *_env, jobject _this, jint shader, jint bufsize, jintArray length_ref, jint lengthOffset, … in android_glGetShaderSource__II_3II_3BI() argument 46 (GLuint)shader, in android_glGetShaderSource__II_3II_3BI() 69 (JNIEnv *_env, jobject _this, jint shader, jint bufsize, jobject length_buf, jbyte source) { in android_glGetShaderSource__IILjava_nio_IntBuffer_2B() argument 81 (GLuint)shader, in android_glGetShaderSource__IILjava_nio_IntBuffer_2B() 92 static jstring android_glGetShaderSource(JNIEnv *_env, jobject, jint shader) { in android_glGetShaderSource() argument 94 glGetShaderiv((GLuint)shader, GL_SHADER_SOURCE_LENGTH, &shaderLen); in android_glGetShaderSource() 103 glGetShaderSource(shader, shaderLen, NULL, buf); in android_glGetShaderSource()
|
D | glGetShaderSource.java | 4 int shader, in glGetShaderSource() argument 16 int shader, in glGetShaderSource() argument 25 int shader in glGetShaderSource() argument
|
D | glGetProgramInfoLog.cpp | 4 static jstring android_glGetProgramInfoLog(JNIEnv *_env, jobject, jint shader) { in android_glGetProgramInfoLog() argument 6 glGetProgramiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in android_glGetProgramInfoLog() 15 glGetProgramInfoLog(shader, infoLen, NULL, buf); in android_glGetProgramInfoLog()
|
D | glGetProgramPipelineInfoLog.cpp | 4 static jstring android_glGetProgramPipelineInfoLog(JNIEnv *_env, jobject, jint shader) { in android_glGetProgramPipelineInfoLog() argument 6 glGetProgramPipelineiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in android_glGetProgramPipelineInfoLog() 15 glGetProgramPipelineInfoLog(shader, infoLen, NULL, buf); in android_glGetProgramPipelineInfoLog()
|
D | glGetShaderInfoLog.cpp | 4 static jstring android_glGetShaderInfoLog(JNIEnv *_env, jobject, jint shader) { in android_glGetShaderInfoLog() argument 6 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in android_glGetShaderInfoLog() 16 glGetShaderInfoLog(shader, infoLen, &outLen, buf); in android_glGetShaderInfoLog()
|
/frameworks/native/opengl/tests/gl_perf/ |
D | fill_common.cpp | 34 GLuint shader = glCreateShader(shaderType); in loadShader() local 35 if (shader) { in loadShader() 36 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 37 glCompileShader(shader); in loadShader() 39 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 42 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 46 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 50 glDeleteShader(shader); in loadShader() 51 shader = 0; in loadShader() 55 return shader; in loadShader()
|
/frameworks/av/cmds/screenrecord/ |
D | Program.cpp | 139 GLuint shader = glCreateShader(shaderType); in compileShader() local 140 if (shader == 0) { in compileShader() 145 glShaderSource(shader, 1, &src, NULL); in compileShader() 146 glCompileShader(shader); in compileShader() 149 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in compileShader() 153 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in compileShader() 157 glGetShaderInfoLog(shader, infoLen, NULL, buf); in compileShader() 162 glDeleteShader(shader); in compileShader() 165 *outShader = shader; in compileShader()
|
/frameworks/native/libs/renderengine/gl/ |
D | Program.cpp | 103 GLuint shader = glCreateShader(type); in buildShader() local 104 glShaderSource(shader, 1, &source, 0); in buildShader() 105 glCompileShader(shader); in buildShader() 107 glGetShaderiv(shader, GL_COMPILE_STATUS, &status); in buildShader() 112 glGetShaderInfoLog(shader, sizeof(log), 0, log); in buildShader() 114 glDeleteShader(shader); in buildShader() 117 return shader; in buildShader()
|
/frameworks/native/libs/gui/tests/ |
D | GLTest.cpp | 256 GLuint shader = glCreateShader(shaderType); in loadShader() local 258 if (shader) { in loadShader() 259 glShaderSource(shader, 1, &pSource, nullptr); in loadShader() 261 glCompileShader(shader); in loadShader() 264 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 268 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 273 glGetShaderInfoLog(shader, infoLen, nullptr, buf); in loadShader() 281 glGetShaderInfoLog(shader, 0x1000, nullptr, buf); in loadShader() 287 glDeleteShader(shader); in loadShader() 288 shader = 0; in loadShader() [all …]
|
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/ |
D | TestLatencyView.java | 170 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 171 if (shader != 0) { in loadShader() 172 GLES20.glShaderSource(shader, source); in loadShader() 173 GLES20.glCompileShader(shader); in loadShader() 175 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 178 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 179 GLES20.glDeleteShader(shader); in loadShader() 180 shader = 0; in loadShader() 183 return shader; in loadShader()
|
/frameworks/native/opengl/tests/gl2_yuvtex/ |
D | gl2_yuvtex.cpp | 84 GLuint shader = glCreateShader(shaderType); in loadShader() local 85 if (shader) { in loadShader() 86 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 87 glCompileShader(shader); in loadShader() 89 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 92 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 96 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 105 glGetShaderInfoLog(shader, 0x1000, NULL, buf); in loadShader() 111 glDeleteShader(shader); in loadShader() 112 shader = 0; in loadShader() [all …]
|
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
D | MyGLSurfaceView.java | 236 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 237 if (shader != 0) { in loadShader() 238 GLES20.glShaderSource(shader, source); in loadShader() 239 GLES20.glCompileShader(shader); in loadShader() 241 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 244 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 245 GLES20.glDeleteShader(shader); in loadShader() 246 shader = 0; in loadShader() 249 return shader; in loadShader()
|
/frameworks/native/opengl/tests/gl2_basic/ |
D | gl2_basic.cpp | 86 GLuint shader = glCreateShader(shaderType); in loadShader() local 87 if (shader) { in loadShader() 88 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 89 glCompileShader(shader); in loadShader() 91 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 94 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 98 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 103 glDeleteShader(shader); in loadShader() 104 shader = 0; in loadShader() 108 return shader; in loadShader()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/ |
D | ImageGLProgram.java | 79 final int shader = glCreateShader(type); in getShaderHandle() local 80 if (shader == 0) { in getShaderHandle() 84 glShaderSource(shader, src); in getShaderHandle() 85 glCompileShader(shader); in getShaderHandle() 86 return shader; in getShaderHandle()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ViewFilter.java | 131 protected void setupShader(ImageShader shader, Rect frameRect, Rect outputRect) { in setupShader() argument 132 shader.setTargetRect(getTargetRect(frameRect, outputRect)); in setupShader() 133 shader.setClearsOutput(true); in setupShader() 134 shader.setClearColor(mClearColor); in setupShader() 136 shader.setSourceRect(0f, 1f, 1f, -1f); in setupShader()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GLDepthTestActivity.java | 265 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 266 if (shader != 0) { in loadShader() 267 GLES20.glShaderSource(shader, source); in loadShader() 268 GLES20.glCompileShader(shader); in loadShader() 270 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 273 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 274 GLES20.glDeleteShader(shader); in loadShader() 275 shader = 0; in loadShader() 278 return shader; in loadShader()
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | OpenGLUtils.java | 41 final int shader = GLES20.glCreateShader(type); in loadShader() local 44 GLES20.glShaderSource(shader, shaderCode); in loadShader() 46 GLES20.glCompileShader(shader); in loadShader() 49 return shader; in loadShader()
|
/frameworks/native/opengl/tests/gl2_copyTexImage/ |
D | gl2_copyTexImage.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/libs/hwui/utils/ |
D | PaintUtils.h | 56 static bool isBlendedShader(const SkShader* shader) { in isBlendedShader() argument 57 if (shader == nullptr) { in isBlendedShader() 60 return !shader->isOpaque(); in isBlendedShader()
|
/frameworks/native/cmds/flatland/ |
D | GLHelper.cpp | 290 GLuint shader = glCreateShader(shaderType); in compileShader() local 291 if (shader == 0) { in compileShader() 296 glShaderSource(shader, 1, &src, nullptr); in compileShader() 297 glCompileShader(shader); in compileShader() 300 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in compileShader() 303 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in compileShader() 307 glGetShaderInfoLog(shader, infoLen, nullptr, buf); in compileShader() 312 glDeleteShader(shader); in compileShader() 315 *outShader = shader; in compileShader()
|