Home
last modified time | relevance | path

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

/packages/apps/Camera/jni/feature_mos/src/mosaic_renderer/
DRenderer.cpp39 GLuint shader = glCreateShader(shaderType); in loadShader() local
40 if (shader) { in loadShader()
41 glShaderSource(shader, 1, &pSource, NULL); in loadShader()
42 glCompileShader(shader); in loadShader()
44 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader()
47 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader()
51 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader()
56 glDeleteShader(shader); in loadShader()
57 shader = 0; in loadShader()
61 return shader; in loadShader()
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
DSurfaceTextureView.java35 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
36 if (shader != 0) { in loadShader()
37 GLES20.glShaderSource(shader, source); in loadShader()
38 GLES20.glCompileShader(shader); in loadShader()
40 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
43 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader()
44 GLES20.glDeleteShader(shader); in loadShader()
45 shader = 0; in loadShader()
48 return shader; in loadShader()
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DRendererUtils.java322 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
323 if (shader != 0) { in loadShader()
324 GLES20.glShaderSource(shader, source); in loadShader()
325 GLES20.glCompileShader(shader); in loadShader()
327 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
329 String info = GLES20.glGetShaderInfoLog(shader); in loadShader()
330 GLES20.glDeleteShader(shader); in loadShader()
331 shader = 0; in loadShader()
335 return shader; in loadShader()