Home
last modified time | relevance | path

Searched refs:shader (Results 1 – 25 of 94) sorted by relevance

1234

/frameworks/base/libs/hwui/
DProgramCache.cpp558 String8 shader(gVS_Header_Start); in generateVertexShader() local
560 shader.append(gVS_Header_Attributes_TexCoords); in generateVertexShader()
563 shader.append(gVS_Header_Attributes_VertexAlphaParameters); in generateVertexShader()
566 shader.append(gVS_Header_Attributes_Colors); in generateVertexShader()
569 shader.append(gVS_Header_Uniforms); in generateVertexShader()
571 shader.append(gVS_Header_Uniforms_TextureTransform); in generateVertexShader()
574 shader.append(gVS_Header_Uniforms_HasGradient); in generateVertexShader()
577 shader.append(gVS_Header_Uniforms_HasBitmap); in generateVertexShader()
580 shader.append(gVS_Header_Uniforms_HasRoundRectClip); in generateVertexShader()
584 shader.append(gVS_Header_Varyings_HasTexture); in generateVertexShader()
[all …]
DSkiaShader.cpp120 bool tryStoreGradient(Caches& caches, const SkShader& shader, const Matrix4 modelViewMatrix, in tryStoreGradient() argument
129 switch (shader.asAGradient(&gradInfo)) { in tryStoreGradient()
154 shader.getLocalMatrix(), modelViewMatrix); in tryStoreGradient()
161 shader.asAGradient(&gradInfo); in tryStoreGradient()
200 bool tryStoreBitmap(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix, in tryStoreBitmap() argument
205 if (!shader.isABitmap(&bitmap, nullptr, xy)) { in tryStoreBitmap()
244 computeScreenSpaceMatrix(outData->textureTransform, SkMatrix::I(), shader.getLocalMatrix(), in tryStoreBitmap()
263 SkiaShaderType getComposeSubType(const SkShader& shader) { in getComposeSubType() argument
265 switch (shader.asAGradient(nullptr)) { in getComposeSubType()
279 if (shader.isABitmap()) { in getComposeSubType()
[all …]
DProgram.cpp134 GLuint shader = glCreateShader(type); in buildShader() local
135 glShaderSource(shader, 1, &source, nullptr); in buildShader()
136 glCompileShader(shader); in buildShader()
139 glGetShaderiv(shader, GL_COMPILE_STATUS, &status); in buildShader()
145 glGetShaderInfoLog(shader, sizeof(log), nullptr, &log[0]); in buildShader()
150 return shader; in buildShader()
DProgramCache.h54 void generateBlend(String8& shader, const char* name, SkBlendMode mode);
55 void generateTextureWrap(String8& shader, GLenum wrapS, GLenum wrapT);
57 void printLongString(const String8& shader) const;
/frameworks/base/core/jni/android/graphics/
DShader.cpp53 static void Shader_safeUnref(SkShader* shader) { in Shader_safeUnref() argument
54 SkSafeUnref(shader); in Shader_safeUnref()
77 SkShader* shader; in BitmapShader_constructor() local
79 shader = baseShader->makeWithLocalMatrix(*matrix).release(); in BitmapShader_constructor()
81 shader = baseShader.release(); in BitmapShader_constructor()
84 ThrowIAE_IfNull(env, shader); in BitmapShader_constructor()
85 return reinterpret_cast<jlong>(shader); in BitmapShader_constructor()
112 SkShader* shader; in LinearGradient_create1() local
114 shader = baseShader->makeWithLocalMatrix(*matrix).release(); in LinearGradient_create1()
116 shader = baseShader.release(); in LinearGradient_create1()
[all …]
/frameworks/native/services/surfaceflinger/RenderEngine/
DProgram.cpp98 GLuint shader = glCreateShader(type); in buildShader() local
99 glShaderSource(shader, 1, &source, 0); in buildShader()
100 glCompileShader(shader); in buildShader()
102 glGetShaderiv(shader, GL_COMPILE_STATUS, &status); in buildShader()
107 glGetShaderInfoLog(shader, sizeof(log), 0, log); in buildShader()
109 glDeleteShader(shader); in buildShader()
112 return shader; in buildShader()
116 GLuint shader = GL_FRAGMENT_SHADER ? mFragmentShader : mVertexShader; in dumpShader() local
118 glGetShaderiv(shader, GL_SHADER_SOURCE_LENGTH, &l); in dumpShader()
120 glGetShaderSource(shader, l, NULL, src); in dumpShader()
/frameworks/native/opengl/tests/gldual/jni/
Dgl_code.cpp38 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/native/opengl/tests/gl2_jni/jni/
Dgl_code.cpp38 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/native/opengl/tests/gl2_java/src/com/android/gl2java/
DGL2JavaView.java96 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/
DglGetShaderSource.cpp4 …(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()
DglGetShaderSource.java4 int shader, in glGetShaderSource() argument
16 int shader, in glGetShaderSource() argument
25 int shader in glGetShaderSource() argument
DglGetProgramPipelineInfoLog.cpp4 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()
DglGetProgramInfoLog.cpp4 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()
DglGetShaderInfoLog.cpp4 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/
DProgram.cpp139 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/
Dfill_common.cpp34 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/native/libs/gui/tests/
DGLTest.cpp254 GLuint shader = glCreateShader(shaderType); in loadShader() local
256 if (shader) { in loadShader()
257 glShaderSource(shader, 1, &pSource, NULL); in loadShader()
259 glCompileShader(shader); in loadShader()
262 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader()
266 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader()
271 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader()
279 glGetShaderInfoLog(shader, 0x1000, NULL, buf); in loadShader()
285 glDeleteShader(shader); in loadShader()
286 shader = 0; in loadShader()
[all …]
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
DTestLatencyView.java170 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_basic/
Dgl2_basic.cpp82 GLuint shader = glCreateShader(shaderType); in loadShader() local
83 if (shader) { in loadShader()
84 glShaderSource(shader, 1, &pSource, NULL); in loadShader()
85 glCompileShader(shader); in loadShader()
87 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader()
90 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader()
94 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader()
99 glDeleteShader(shader); in loadShader()
100 shader = 0; in loadShader()
104 return shader; in loadShader()
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
DMyGLSurfaceView.java236 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/
DViewFilter.java131 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/opengl/tests/gl2_yuvtex/
Dgl2_yuvtex.cpp84 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/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLDepthTestActivity.java265 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/
Dgl2_copyTexImage.cpp77 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/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DBasicGLRenderer.java71 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()

1234