/frameworks/base/core/jni/android/graphics/ |
D | Shader.cpp | 55 static void Shader_safeUnref(SkShader* shader) { in Shader_safeUnref() argument 56 SkSafeUnref(shader); in Shader_safeUnref() 79 sk_sp<SkShader> shader = image->makeShader( in BitmapShader_constructor() local 81 ThrowIAE_IfNull(env, shader.get()); in BitmapShader_constructor() 84 shader = shader->makeWithLocalMatrix(*matrix); in BitmapShader_constructor() 87 return reinterpret_cast<jlong>(shader.release()); in BitmapShader_constructor() 123 sk_sp<SkShader> shader(SkGradientShader::MakeLinear(pts, &colors[0], in LinearGradient_create() local 126 ThrowIAE_IfNull(env, shader); in LinearGradient_create() 130 shader = shader->makeWithLocalMatrix(*matrix); in LinearGradient_create() 133 return reinterpret_cast<jlong>(shader.release()); in LinearGradient_create() [all …]
|
/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/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_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 | 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 | 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 | 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 | 99 GLuint shader = glCreateShader(type); in buildShader() local 100 glShaderSource(shader, 1, &source, 0); in buildShader() 101 glCompileShader(shader); in buildShader() 103 glGetShaderiv(shader, GL_COMPILE_STATUS, &status); in buildShader() 108 glGetShaderInfoLog(shader, sizeof(log), 0, log); in buildShader() 110 glDeleteShader(shader); in buildShader() 113 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/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/native/cmds/flatland/ |
D | GLHelper.cpp | 291 GLuint shader = glCreateShader(shaderType); in compileShader() local 292 if (shader == 0) { in compileShader() 297 glShaderSource(shader, 1, &src, nullptr); in compileShader() 298 glCompileShader(shader); in compileShader() 301 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in compileShader() 304 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in compileShader() 308 glGetShaderInfoLog(shader, infoLen, nullptr, buf); in compileShader() 313 glDeleteShader(shader); in compileShader() 316 *outShader = shader; in compileShader()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | ShaderCacheTests.cpp | 89 inline bool checkShader(const sk_sp<SkData>& shader, const char* program) { in checkShader() argument 91 return checkShader(shader, shader2); in checkShader() 95 bool checkShader(const sk_sp<SkData>& shader, std::vector<T>& program) { in checkShader() argument 97 return checkShader(shader, shader2); in checkShader() 100 void setShader(sk_sp<SkData>& shader, const char* program) { in setShader() argument 101 shader = SkData::MakeWithCString(program); in setShader() 105 void setShader(sk_sp<SkData>& shader, std::vector<T>& buffer) { in setShader() argument 106 shader = SkData::MakeWithCopy(buffer.data(), buffer.size() * sizeof(T)); in setShader()
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | BasicGLRenderer.java | 71 int shader = GLES20.glCreateShader(type); in loadShader() local 72 GLES20.glShaderSource(shader, shaderCode); in loadShader() 73 GLES20.glCompileShader(shader); in loadShader() 75 return shader; in loadShader()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | CircularBitmapDrawable.java | 134 BitmapShader shader = (BitmapShader) mBitmapPaint.getShader(); in onDrawCircularBitmap() local 135 if (shader == null || mShaderBitmap != bitmap) { in onDrawCircularBitmap() 136 shader = new BitmapShader(bitmap, TileMode.CLAMP, TileMode.CLAMP); in onDrawCircularBitmap() 147 shader.setLocalMatrix(mMatrix); in onDrawCircularBitmap() 148 mBitmapPaint.setShader(shader); in onDrawCircularBitmap()
|