/frameworks/base/opengl/tests/gl2_copyTexImage/ |
gl2_copyTexImage.cpp | 113 GLuint program = glCreateProgram(); local 114 if (program) { 115 glAttachShader(program, vertexShader); 117 glAttachShader(program, pixelShader); 119 glLinkProgram(program); 121 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); 124 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); 128 glGetProgramInfoLog(program, bufLength, NULL, buf); 129 fprintf(stderr, "Could not link program:\n%s\n", buf); 133 glDeleteProgram(program); [all...] |
/frameworks/base/opengl/tests/gl_perf/ |
fill_common.cpp | 76 GLuint program = glCreateProgram(); local 77 if (program) { 78 glAttachShader(program, vertexShader); 80 glAttachShader(program, pixelShader); 83 glBindAttribLocation(program, A_POS, "a_pos"); 84 glBindAttribLocation(program, A_COLOR, "a_color"); 85 glBindAttribLocation(program, A_TEX0, "a_tex0"); 86 glBindAttribLocation(program, A_TEX1, "a_tex1"); 87 glLinkProgram(program); 89 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus) [all...] |
/frameworks/base/opengl/tests/testLatency/src/com/android/testlatency/ |
TestLatencyView.java | 197 int program = GLES20.glCreateProgram(); local 198 if (program != 0) { 199 GLES20.glAttachShader(program, vertexShader); 201 GLES20.glAttachShader(program, pixelShader); 203 GLES20.glLinkProgram(program); 205 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); 207 Log.e(TAG, "Could not link program: "); 208 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); 209 GLES20.glDeleteProgram(program); 210 program = 0 [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gldebugger/ |
GLServerShader.java | 164 GLProgram program = ctx.serverShader.programs.get(name); local 165 if (program != null) 166 return program; 172 // void API_ENTRY(glAttachShader)(GLuint program, GLuint shader) 174 GLProgram program = getProgram(msg.getArg0()); local 175 assert program != null; 177 assert program != null; 179 program.vert = shader.name; 181 program.frag = shader.name; 182 shader.programs.add(program.name) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
GLES20TriangleRenderer.java | 185 int program = GLES20.glCreateProgram(); local 186 if (program != 0) { 187 GLES20.glAttachShader(program, vertexShader); 189 GLES20.glAttachShader(program, pixelShader); 191 GLES20.glLinkProgram(program); 193 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); 195 Log.e(TAG, "Could not link program: "); 196 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); 197 GLES20.glDeleteProgram(program); 198 program = 0 [all...] |
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
GLES20TriangleRenderer.java | 183 int program = GLES20.glCreateProgram(); local 184 if (program != 0) { 185 GLES20.glAttachShader(program, vertexShader); 187 GLES20.glAttachShader(program, pixelShader); 189 GLES20.glLinkProgram(program); 191 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); 193 Log.e(TAG, "Could not link program: "); 194 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); 195 GLES20.glDeleteProgram(program); 196 program = 0 [all...] |
/development/tools/emulator/opengl/tests/translator_tests/GLES_V2/ |
triangleV2.cpp | 155 void dumpUniforms(GLuint program) 158 glGetProgramiv(program, GL_ACTIVE_UNIFORMS, &numU); 159 printf("==== Program %d has %d active uniforms ===\n", program, numU); 165 glGetActiveUniform(program, i, 172 // Initialize the shader and program object 183 // Create the program object 191 // Link the program 203 printf("Error linking program:\n%s\n", infoLog); 213 // Store the program objec 417 int program = Init(vShader, fShader); local [all...] |
/external/netperf/ |
netsh.c | 117 char *program; /* program invocation name */ variable 478 program = (char *)malloc(strlen(argv[0]) + 1); 479 if (program == NULL) { 483 strcpy(program, argv[0]); 990 printf("Program name: %s\n", program);
|
/external/webkit/Source/JavaScriptCore/qt/tests/qscriptengine/ |
tst_qscriptengine.cpp | 280 QScriptProgram program(code, fileName, lineNumber); 281 QVERIFY(!program.isNull()); 282 QCOMPARE(program.sourceCode(), code); 283 QCOMPARE(program.fileName(), fileName); 284 QCOMPARE(program.firstLineNumber(), lineNumber); 288 QScriptValue ret = eng.evaluate(program); 293 QScriptProgram sameProgram = program; 294 QVERIFY(sameProgram == program); 298 QScriptProgram sameProgram2(program); 299 QVERIFY(sameProgram2 == program); 366 QScriptProgram program; local [all...] |
/external/webkit/Source/WebCore/bindings/v8/custom/ |
V8WebGLRenderingContextCustom.cpp | 254 WebGLProgram* program = V8WebGLProgram::HasInstance(args[0]) ? V8WebGLProgram::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0; local 256 bool succeed = context->getAttachedShaders(program, shaders, ec); 345 WebGLProgram* program = V8WebGLProgram::HasInstance(args[0]) ? V8WebGLProgram::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0; local 347 WebGLGetInfo info = context->getProgramParameter(program, pname, ec); 421 WebGLProgram* program = V8WebGLProgram::HasInstance(args[0]) ? V8WebGLProgram::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0; local 430 WebGLGetInfo info = context->getUniform(program, location, ec);
|
/frameworks/base/media/libstagefright/tests/ |
SurfaceMediaSource_test.cpp | 254 GLuint program = glCreateProgram(); local 256 if (program) { 257 glAttachShader(program, vertexShader); 259 glAttachShader(program, fragmentShader); 261 glLinkProgram(program); 263 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); 266 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); 270 glGetProgramInfoLog(program, bufLength, NULL, buf); 271 printf("Program link log:\n%s\n", buf); 276 glDeleteProgram(program); [all...] |
/frameworks/base/opengl/tests/gl2_yuvtex/ |
gl2_yuvtex.cpp | 129 GLuint program = glCreateProgram(); local 130 if (program) { 131 glAttachShader(program, vertexShader); 133 glAttachShader(program, pixelShader); 135 glLinkProgram(program); 137 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); 140 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); 144 glGetProgramInfoLog(program, bufLength, NULL, buf); 145 fprintf(stderr, "Could not link program:\n%s\n", buf); 149 glDeleteProgram(program); [all...] |
/frameworks/media/libvideoeditor/lvpp/ |
NativeWindowRenderer.cpp | 252 GLuint program = glCreateProgram(); local 255 glAttachShader(program, vertexShader); 258 glAttachShader(program, fragmentShader); 261 glLinkProgram(program); 265 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); 268 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &infoLen); 272 glGetProgramInfoLog(program, infoLen, NULL, buf); 273 LOGE("Program link log:\n%s\n", buf); 277 glDeleteProgram(program); 278 program = 0 [all...] |
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
SurfaceTextureView.java | 69 int program = GLES20.glCreateProgram(); local 70 if (program != 0) { 71 GLES20.glAttachShader(program, vertexShader); 73 GLES20.glAttachShader(program, pixelShader); 75 GLES20.glLinkProgram(program); 77 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); 79 Log.e(TAG, "Could not link program: "); 80 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); 81 GLES20.glDeleteProgram(program); 82 program = 0 [all...] |
/cts/tests/src/android/media/cts/ |
VideoSurfaceView.java | 283 int program = GLES20.glCreateProgram(); local 284 if (program != 0) { 285 GLES20.glAttachShader(program, vertexShader); 287 GLES20.glAttachShader(program, pixelShader); 289 GLES20.glLinkProgram(program); 291 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); 293 Log.e(TAG, "Could not link program: "); 294 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); 295 GLES20.glDeleteProgram(program); 296 program = 0 [all...] |
/development/tools/glesv2debugger/src/com/android/glesv2debugger/ |
ShaderEditor.java | 131 for (int program : shader.programs) { 132 builder.append(program); 281 GLProgram program = shader.context.getProgram(programName); local 282 exchangeMessage(contextId, queue, "glLinkProgram(%d)", program.name); 284 "glGetProgramiv(%d, GL_LINK_STATUS, {0})", program.name); 290 "glGetProgramInfoLog(%d, 0, 0, \"\")", program.name); 291 final String title = String.format("Program %d in 0x%s failed to link", 292 program.name, Integer.toHexString(program.context.context.contextId));
|
/external/chromium/chrome/common/ |
service_process_util_unittest.cc | 272 CFStringRef program = CFSTR(LAUNCH_JOBKEY_PROGRAM); variable 274 const void *keys[] = { program, program_args };
|
/external/mesa3d/src/pixelflinger2/ |
shader.cpp | 31 #include "src/mesa/program/prog_parameter.h" 32 #include "src/mesa/program/prog_uniform.h" 206 gl_shader_program * program = hieralloc_zero(NULL, struct gl_shader_program); local 207 if (!program) 209 program->Attributes = hieralloc_zero(program, gl_program_parameter_list); 210 if (!program->Attributes) { 211 hieralloc_free(program); 214 program->Varying = hieralloc_zero(program, gl_program_parameter_list) 225 gl_shader_program * program = GGLShaderProgramCreate(); local 361 const gl_shader_program * program; member in struct:SymbolLookupContext [all...] |
/external/skia/gpu/src/ |
GrGpuGLShaders.cpp | 166 GrGLProgram program; local 167 GrGLProgram::ProgramDesc& pdesc = program.fProgramDesc; 177 GrPrintf("\nTest Program %d\n-------------\n", t); 238 program.genProgram(&cachedData); 242 program.genProgram(&cachedData); 561 GrAssert(!"Failed to create program!"); 711 // fColorType records how colors are specified for the program. Strip 713 // existing program in the cache. [all...] |
/external/v8/test/cctest/ |
test-parsing.cc | 267 const char* program = programs[i]; local 269 reinterpret_cast<const i::byte*>(program), 270 static_cast<unsigned>(strlen(program))); 294 const char* program = "var x = 'something';\n" local 301 i::Utf8ToUC16CharacterStream stream(reinterpret_cast<const i::byte*>(program), 302 static_cast<unsigned>(strlen(program))); 321 const char* program = local 325 i::Utf8ToUC16CharacterStream stream(reinterpret_cast<const i::byte*>(program), 326 static_cast<unsigned>(strlen(program))); 334 static_cast<int>(strstr(program, "function") - program) [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/geometry/ |
VertexDataManager.cpp | 15 #include "libGLESv2/Program.h" 108 Program *program = mContext->getCurrentProgram(); local 112 translated[attributeIndex].active = (program->getSemanticIndex(attributeIndex) != -1);
|
/external/webkit/Source/WebCore/platform/graphics/opengl/ |
TextureMapperGL.cpp | 70 void glGetProgramInfoLog(GLuint program, GLsizei, GLsizei*, GLchar*); 148 LOG(Graphics, "Compiled program for texture mapper. Log: %s\n", infoLog); 260 if (TextureMapperGLData::shaderInfo.getUniformLocation(TextureMapperGLData::shaderInfo.prog##Program, TextureMapperGLData::shaderInfo.var##Variable, #var) < 0) \ 261 LOG_ERROR("Couldn't find variable "#var" in program "#prog"\n"); 263 #define TEXMAP_BUILD_SHADER(program) \ 264 TextureMapperGLData::shaderInfo.createShaderProgram(vertexShaderSource##program, fragmentShaderSource##program, TextureMapperGLData::shaderInfo.program##Program); 370 TextureMapperGLData::ShaderInfo::ShaderProgramIndex program; local [all...] |
/frameworks/base/libs/hwui/ |
ProgramCache.cpp | 360 PROGRAM_LOGD("Clearing program cache"); 369 Program* ProgramCache::get(const ProgramDescription& description) { 372 Program* program = NULL; local 374 description.log("Could not find program"); 375 program = generateProgram(description, key); 376 mCache.add(key, program); 378 program = mCache.valueAt(index); 380 return program; 384 // Program generatio 391 Program* program = new Program(vertexShader.string(), fragmentShader.string()); local [all...] |
/frameworks/base/media/libstagefright/mpeg2ts/ |
ATSParser.cpp | 46 struct ATSParser::Program : public RefBase { 47 Program(ATSParser *parser, unsigned programNumber, unsigned programMapPID); 82 DISALLOW_EVIL_CONSTRUCTORS(Program); 86 Stream(Program *program, unsigned elementaryPID, unsigned streamType); 107 Program *mProgram; 134 ATSParser::Program::Program( 141 LOGV("new program number %u", programNumber); 144 bool ATSParser::Program::parsePID 888 const sp<Program> &program = mPrograms.itemAt(index); local 988 const sp<Program> &program = mPrograms.editItemAt(i); local [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GLTextureViewActivity.java | 190 int program = buildProgram(sSimpleVS, sSimpleFS); local 192 int attribPosition = glGetAttribLocation(program, "position"); 195 int attribTexCoords = glGetAttribLocation(program, "texCoords"); 198 int uniformTexture = glGetUniformLocation(program, "texture"); 204 glUseProgram(program); 285 int program = glCreateProgram(); local 286 glAttachShader(program, vertexShader); 289 glAttachShader(program, fragmentShader); 292 glLinkProgram(program); 296 glGetProgramiv(program, GL_LINK_STATUS, status, 0) [all...] |