/frameworks/native/libs/shaders/ |
D | shaders.cpp | 36 void generateEOTF(ui::Dataspace dataspace, std::string& shader) { in generateEOTF() argument 39 shader.append(R"( in generateEOTF() 55 shader.append(R"( in generateEOTF() 71 shader.append(R"( in generateEOTF() 78 shader.append(R"( in generateEOTF() 94 shader.append(R"( in generateEOTF() 110 shader.append(R"( in generateEOTF() 126 shader.append(R"( in generateEOTF() 143 shader.append(R"( in generateEOTF() 161 void generateXYZTransforms(std::string& shader) { in generateXYZTransforms() argument [all …]
|
/frameworks/av/media/libstagefright/renderfright/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/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/base/libs/hwui/jni/ |
D | Shader.cpp | 56 static void Shader_safeUnref(SkShader* shader) { in Shader_safeUnref() argument 57 SkSafeUnref(shader); in Shader_safeUnref() 83 sk_sp<SkShader> shader; in BitmapShader_constructor() local 85 shader = image->makeRawShader((SkTileMode)tileModeX, (SkTileMode)tileModeY, sampling); in BitmapShader_constructor() 87 shader = image->makeShader((SkTileMode)tileModeX, (SkTileMode)tileModeY, sampling); in BitmapShader_constructor() 89 ThrowIAE_IfNull(env, shader.get()); in BitmapShader_constructor() 92 shader = shader->makeWithLocalMatrix(*matrix); in BitmapShader_constructor() 95 return reinterpret_cast<jlong>(shader.release()); in BitmapShader_constructor() 131 sk_sp<SkShader> shader(SkGradientShader::MakeLinear(pts, &colors[0], in LinearGradient_create() local 134 ThrowIAE_IfNull(env, shader); in LinearGradient_create() [all …]
|
/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/libs/renderengine/skia/filters/ |
D | LinearEffect.cpp | 36 auto [shader, error] = SkRuntimeEffect::MakeForShader(shaderString); in buildRuntimeEffect() 37 if (!shader) { in buildRuntimeEffect() 40 return shader; in buildRuntimeEffect() 44 sk_sp<SkShader> shader, const shaders::LinearEffect& linearEffect, in createLinearEffectShader() argument 51 effectBuilder.child("child") = shader; in createLinearEffectShader()
|
/frameworks/base/graphics/java/android/graphics/ |
D | RuntimeShader.java | 263 public RuntimeShader(@NonNull String shader) { in RuntimeShader() argument 267 if (shader == null) { in RuntimeShader() 270 mNativeInstanceRuntimeShaderBuilder = nativeCreateBuilder(shader); in RuntimeShader() 486 public void setInputShader(@NonNull String shaderName, @NonNull Shader shader) { in setInputShader() argument 490 if (shader == null) { in setInputShader() 494 mNativeInstanceRuntimeShaderBuilder, shaderName, shader.getNativeInstance()); in setInputShader() 506 public void setInputBuffer(@NonNull String shaderName, @NonNull BitmapShader shader) { in setInputBuffer() argument 510 if (shader == null) { in setInputBuffer() 515 shader.getNativeInstanceWithDirectSampling()); in setInputBuffer() 545 long shaderBuilder, String shaderName, long shader); in nativeUpdateShader() argument
|
/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/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/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/media/libstagefright/renderfright/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/libs/renderengine/gl/ |
D | Program.cpp | 112 GLuint shader = glCreateShader(type); in buildShader() local 113 glShaderSource(shader, 1, &source, 0); in buildShader() 114 glCompileShader(shader); in buildShader() 116 glGetShaderiv(shader, GL_COMPILE_STATUS, &status); in buildShader() 121 glGetShaderInfoLog(shader, sizeof(log), 0, log); in buildShader() 123 glDeleteShader(shader); in buildShader() 126 return shader; in buildShader()
|
/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/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/native/libs/tonemap/tests/ |
D | tonemap_test.cpp | 65 const auto shader = in TEST_F() local 73 EXPECT_THAT(shader, HasSubstr("float libtonemap_LookupTonemapGain(vec3 linearRGB, vec3 xyz)")); in TEST_F() 77 const auto shader = in TEST_F() local 85 EXPECT_THAT(shader, HasSubstr("float libtonemap_LookupTonemapGain(vec3 linearRGB, vec3 xyz)")); in TEST_F()
|
/frameworks/base/libs/hwui/utils/ |
D | PaintUtils.h | 48 static bool isBlendedShader(const SkShader* shader) { return shader && !shader->isOpaque(); } in isBlendedShader() argument
|