/external/chromium_org/third_party/angle/src/libGLESv2/ |
H A D | formatutils.cpp | 17 namespace gl namespace
|
/external/chromium_org/third_party/skia/bench/ |
H A D | nanobench.cpp | 31 #include "gl/GrGLDefines.h" 87 static double time(int loops, Benchmark* bench, SkCanvas* canvas, SkGLContextHelper* gl) { argument 100 if (gl) { 101 SK_GL(*gl, Flush()); 102 gl->swapBuffers(); 206 static int gpu_bench(SkGLContextHelper* gl, argument 210 gl->makeCurrent(); 212 SK_GL(*gl, Finish()); 225 elapsed = time(loops, bench, canvas, gl); 233 SK_GL(*gl, Finis 277 SkGLContextHelper* gl; member in struct:Target [all...] |
/external/chromium_org/ui/gfx/ |
H A D | color_analysis.cc | 568 float gl = t0 + tr * r + tg * g + tb * b; local 569 if (gl < 0) 570 gl = 0; 571 if (gl > 0xFF) 572 gl = 0xFF; 573 target_color_row[x] = static_cast<uint8_t>(gl);
|
/external/deqp/framework/opengl/ |
H A D | gluDrawUtil.cpp | 220 static OutputIter namedBindingsToProgramLocations (const glw::Functions& gl, deUint32 program, InputIter first, InputIter end, OutputIter out) argument 228 int location = gl.getAttribLocation(program, binding.name.c_str()); 323 void uploadBufferData (const glw::Functions& gl, deUint32 buffer, deUint32 usage, const VertexBufferLayout& layout, const VertexArrayPointer* srcArrays) argument 331 gl.bindBuffer(GL_ARRAY_BUFFER, buffer); 332 gl.bufferData(GL_ARRAY_BUFFER, (int)localBuf.size(), &localBuf[0], usage); 333 gl.bindBuffer(GL_ARRAY_BUFFER, 0); 334 GLU_EXPECT_NO_ERROR(gl.getError(), "Uploading buffer data failed"); 342 const glw::Functions& gl = context.getFunctions(); local 360 uploadBufferData(gl, m_object, usage, layout, &srcPtrs[0]); 376 const glw::Functions& gl local 403 setVertexAttribPointer(const glw::Functions& gl, const VertexAttributeDescriptor& va) argument 422 setVertexBufferAttributes(const glw::Functions& gl, const VertexBufferDescriptor& buffer) argument 432 disableVertexArrays(const glw::Functions& gl, const std::vector<VertexArrayBinding>& bindings) argument 479 drawNonIndexed(const glw::Functions& gl, PrimitiveType type, int numElements) argument 485 drawIndexed(const glw::Functions& gl, PrimitiveType type, int numElements, IndexType indexType, const void* indexPtr) argument 497 const glw::Functions& gl = context.getFunctions(); local 529 const glw::Functions& gl = context.getFunctions(); local 582 const glw::Functions& gl = context.getFunctions(); local [all...] |
H A D | gluES3PlusWrapperContext.cpp | 57 const glw::Functions& gl; //!< GL 4.3 core context functions. member in class:glu::es3plus::Context 73 : gl (gl_) 76 , renderer ((const char*)gl.getString(GL_RENDERER)) 82 gl.genVertexArrays(1, &defaultVAO); 83 if (gl.getError() != GL_NO_ERROR || defaultVAO == 0) 86 gl.bindVertexArray(defaultVAO); 87 if (gl.getError() != GL_NO_ERROR) 91 gl.enable(GL_PROGRAM_POINT_SIZE); 92 gl.getError(); // supress potential errors, feature is not critical 94 gl [all...] |
/external/deqp/framework/platform/null/ |
H A D | tcuNullRenderContext.cpp | 581 void initFunctions (glw::Functions* gl) argument
|
/external/deqp/modules/egl/ |
H A D | teglNativeCoordMappingTests.cpp | 84 deUint32 createGLES2Program (const glw::Functions& gl, TestLog& log) argument 112 program = gl.createProgram(); 113 vertexShader = gl.createShader(GL_VERTEX_SHADER); 114 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); 116 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to create shaders and program"); 118 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); 119 gl.compileShader(vertexShader); 120 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to setup vertex shader"); 122 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); 123 gl 207 clear(const glw::Functions& gl, const tcu::Vec4& color, int x, int y, int width, int height) argument 224 render(const glw::Functions& gl, deUint32 program, int targetWidth, int targetHeight, int x, int y, int width, int height) argument 359 testNativeWindow(TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativeWindow& nativeWindow, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor, int waitFrames) argument 407 testNativePixmap(TestLog& log, eglu::NativeDisplay& nativeDisplay, eglu::NativePixmap& nativePixmap, int width, int height, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor) argument 451 testNativePixmapCopy(TestLog& log, eglu::NativePixmap& nativePixmap, int width, int height, EGLDisplay display, EGLContext context, EGLConfig config, const glw::Functions& gl, bool renderColor) argument 534 glw::Functions gl; local [all...] |
H A D | teglPreservingSwapTests.cpp | 102 GLES2Program (const glw::Functions& gl); 117 GLES2Program::GLES2Program (const glw::Functions& gl) argument 118 : m_gl (gl) 362 void clearColorScreen(const glw::Functions& gl, float red, float green, float blue, float alpha) argument 364 gl.clearColor(red, green, blue, alpha); 365 gl.clear(GL_COLOR_BUFFER_BIT); 373 void readPixels (const glw::Functions& gl, tcu::Surface* screen) argument 375 gl.readPixels(0, 0, screen->getWidth(), screen->getHeight(), GL_RGBA, GL_UNSIGNED_BYTE, screen->getAccess().getDataPtr());
|
H A D | teglResizeTests.cpp | 212 void drawRectangle (const glw::Functions& gl, IVec2 pos, IVec2 size, Vec3 color) argument 214 gl.clearColor(color.x(), color.y(), color.z(), 1.0); 215 gl.scissor(pos.x(), pos.y(), size.x(), size.y()); 216 gl.enable(GL_SCISSOR_TEST); 217 gl.clear(GL_COLOR_BUFFER_BIT); 218 gl.disable(GL_SCISSOR_TEST); 219 GLU_EXPECT_NO_ERROR(gl.getError(), 223 void initSurface (const glw::Functions& gl, IVec2 oldSize) argument 229 drawRectangle(gl, IVec2(0, 0), oldSize, frameColor); 230 drawRectangle(gl, IVec 289 readSurface(const glw::Functions& gl, IVec2 size) argument [all...] |
/external/deqp/modules/gles2/accuracy/ |
H A D | es2aTextureFilteringTests.cpp | 194 const glw::Functions& gl = m_renderCtx.getFunctions(); local 219 gl.activeTexture(GL_TEXTURE0); 222 gl.bindTexture(GL_TEXTURE_2D, m_textures[curTexNdx]->getGLTexture()); 223 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, m_wrapS); 224 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, m_wrapT); 225 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_minFilter); 226 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_magFilter); 237 gl.viewport(viewport.x, viewport.y, leftWidth, bottomHeight); 248 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, bottomHeight); 262 gl 465 renderFaces( const glw::Functions& gl, const SurfaceAccess& dstRef, const tcu::TextureCube& refTexture, const ReferenceParams& params, TextureRenderer& renderer, int x, int y, int width, int height, const tcu::Vec2& bottomLeft, const tcu::Vec2& topRight, const tcu::Vec2& texCoordTopRightFactor) argument 517 const glw::Functions& gl = m_renderCtx.getFunctions(); local [all...] |
/external/deqp/modules/gles2/functional/ |
H A D | es2fFlushFinishTests.cpp | 219 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 220 const int posLoc = gl.getAttribLocation(m_program->getProgram(), "a_position"); 234 gl.viewport(0, 0, viewportW, viewportH); 235 gl.useProgram(m_program->getProgram()); 236 gl.enableVertexAttribArray(posLoc); 237 gl.vertexAttribPointer(posLoc, 2, GL_FLOAT, GL_FALSE, 0, &s_positions[0]); 238 gl.enable(GL_BLEND); 239 gl.blendFunc(GL_ONE, GL_ONE); 240 gl.blendEquation(GL_FUNC_ADD); 241 GLU_EXPECT_NO_ERROR(gl 246 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 258 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local [all...] |
H A D | es2fPolygonOffsetTests.cpp | 182 void verifyError (tcu::TestContext& testCtx, const glw::Functions& gl, GLenum expected) argument 184 deUint32 got = gl.getError(); 295 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 303 gl.genRenderbuffers(1, &colorRboId); 304 gl.bindRenderbuffer(GL_RENDERBUFFER, colorRboId); 305 gl.renderbufferStorage(GL_RENDERBUFFER, GL_RGBA4, m_targetSize, m_targetSize); 306 verifyError(m_testCtx, gl, GL_NO_ERROR); 308 gl.genRenderbuffers(1, &depthRboId); 309 gl.bindRenderbuffer(GL_RENDERBUFFER, depthRboId); 310 gl 367 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 495 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 614 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 764 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 877 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 994 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 1116 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local [all...] |
H A D | es2fShaderIndexingTests.cpp | 200 const glw::Functions& gl = m_renderCtx.getFunctions(); local 204 int arrLoc = gl.getUniformLocation(programID, "u_arr"); 215 gl.uniform1fv(arrLoc, 4, &arr[0]); 224 gl.uniform2fv(arrLoc, 4, arr[0].getPtr()); 233 gl.uniform3fv(arrLoc, 4, arr[0].getPtr()); 242 gl.uniform4fv(arrLoc, 4, arr[0].getPtr());
|
H A D | es2fShaderInvarianceTests.cpp | 209 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 232 gl.genBuffers(1, &m_arrayBuf); 233 gl.bindBuffer(GL_ARRAY_BUFFER, m_arrayBuf); 234 gl.bufferData(GL_ARRAY_BUFFER, (int)(triangles.size() * sizeof(tcu::Vec4)), &triangles[0], GL_STATIC_DRAW); 235 GLU_EXPECT_NO_ERROR(gl.getError(), "buffer gen"); 258 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 264 gl.clearColor (0.0f, 0.0f, 0.0f, 1.0f); 265 gl.clear (GL_COLOR_BUFFER_BIT); 266 gl.viewport (0, 0, m_renderSize, m_renderSize); 267 gl [all...] |
H A D | es2fTextureFilteringTests.cpp | 263 const glw::Functions& gl = m_renderCtx.getFunctions(); local 287 gl.bindTexture (GL_TEXTURE_2D, curCase.texture->getGLTexture()); 288 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_minFilter); 289 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_magFilter); 290 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, m_wrapS); 291 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, m_wrapT); 293 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); 533 const glw::Functions& gl = m_renderCtx.getFunctions(); local 546 gl.bindTexture (GL_TEXTURE_CUBE_MAP, curCase.texture->getGLTexture()); 547 gl [all...] |
/external/deqp/modules/gles2/performance/ |
H A D | es2pDrawCallBatchingTests.cpp | 350 const glw::Functions& gl = m_renderCtx.getFunctions(); local 359 gl.genBuffers(1, &buffer); 360 gl.bindBuffer(GL_ARRAY_BUFFER, buffer); 361 gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_staticAttributeDatas[attribute][0]), GL_STATIC_DRAW); 362 gl.bindBuffer(GL_ARRAY_BUFFER, 0); 363 GLU_EXPECT_NO_ERROR(gl.getError(), "Creating static buffer failed"); 373 gl.genBuffers(1, &buffer); 374 gl.bindBuffer(GL_ARRAY_BUFFER, buffer); 375 gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount, &(m_staticAttributeDatas[attribute][0]), GL_STATIC_DRAW); 376 gl 424 const glw::Functions& gl = m_renderCtx.getFunctions(); local 498 const glw::Functions& gl = m_renderCtx.getFunctions(); local 579 const glw::Functions& gl = m_renderCtx.getFunctions(); local 685 const glw::Functions& gl = m_renderCtx.getFunctions(); local [all...] |
H A D | es2pTextureUploadTests.cpp | 126 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 134 gl.deleteTextures(1, &m_texture); 142 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 144 gl.getIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); 185 gl.useProgram (m_program->getProgram()); 189 gl.viewport (0, 0, VIEWPORT_SIZE, VIEWPORT_SIZE); 190 gl.disable (GL_DEPTH_TEST); 191 gl.disable (GL_CULL_FACE); 192 gl.enable (GL_BLEND); 193 gl 314 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 333 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 410 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local [all...] |
/external/deqp/modules/gles3/accuracy/ |
H A D | es3aTextureFilteringTests.cpp | 185 const glw::Functions& gl = m_renderCtx.getFunctions(); local 210 gl.activeTexture(GL_TEXTURE0); 213 gl.bindTexture(GL_TEXTURE_2D, m_textures[curTexNdx]->getGLTexture()); 214 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, m_wrapS); 215 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, m_wrapT); 216 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, m_minFilter); 217 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, m_magFilter); 228 gl.viewport(viewport.x, viewport.y, leftWidth, bottomHeight); 239 gl.viewport(viewport.x+leftWidth, viewport.y, rightWidth, bottomHeight); 253 gl 475 renderFaces( const glw::Functions& gl, const SurfaceAccess& dstRef, const tcu::TextureCube& refTexture, const ReferenceParams& params, TextureRenderer& renderer, int x, int y, int width, int height, const tcu::Vec2& bottomLeft, const tcu::Vec2& topRight, const tcu::Vec2& texCoordTopRightFactor, bool multiFace) argument 531 const glw::Functions& gl = m_renderCtx.getFunctions(); local [all...] |
/external/deqp/modules/gles3/functional/ |
H A D | es3fDefaultVertexAttributeTests.cpp | 84 virtual tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const = 0; 101 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \ 106 gl.glVertexAttrib ##COMPS ##TYPECODE VALUES; \ 135 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \ 140 gl.glVertexAttrib ##COMPS ##TYPECODE (index, value.getPtr()); \ 169 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \ 174 gl.glVertexAttribI ##COMPS ##TYPECODE VALUES; \ 203 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \ 208 gl.glVertexAttribI ##COMPS ##TYPECODE (index, value.getPtr()); \ 342 const glw::Functions& gl local [all...] |
H A D | es3fFboTestUtil.cpp | 341 void Texture2DShader::setUniforms (sglr::Context& gl, deUint32 program) const argument 343 gl.useProgram(program); 351 gl.uniform1i(gl.getUniformLocation(program, samplerName.c_str()), m_inputs[texNdx].unitNdx); 352 gl.uniform4fv(gl.getUniformLocation(program, scaleName.c_str()), 1, m_inputs[texNdx].scale.getPtr()); 353 gl.uniform4fv(gl.getUniformLocation(program, biasName.c_str()), 1, m_inputs[texNdx].bias.getPtr()); 356 gl.uniform4fv(gl 500 setUniforms(sglr::Context& gl, deUint32 program) const argument 611 setUniforms(sglr::Context& gl, deUint32 program) const argument 719 setUniforms(sglr::Context& gl, deUint32 program) const argument [all...] |
H A D | es3fFlushFinishTests.cpp | 228 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 229 const int posLoc = gl.getAttribLocation(m_program->getProgram(), "a_position"); 243 gl.viewport(0, 0, viewportW, viewportH); 244 gl.useProgram(m_program->getProgram()); 245 gl.enableVertexAttribArray(posLoc); 246 gl.vertexAttribPointer(posLoc, 2, GL_FLOAT, GL_FALSE, 0, &s_positions[0]); 247 gl.enable(GL_BLEND); 248 gl.blendFunc(GL_ONE, GL_ONE); 249 gl.blendEquation(GL_FUNC_ADD); 250 GLU_EXPECT_NO_ERROR(gl 255 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 261 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 273 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local [all...] |
H A D | es3fLifetimeTests.cpp | 89 const Functions& gl = m_renderCtx.getFunctions(); local 91 m_scaleLoc = gl.getUniformLocation(getProgram(), "scale"); 92 m_posLoc = gl.getAttribLocation(getProgram(), "pos"); 128 const Functions& gl = m_renderCtx.getFunctions(); local 133 gl.clearColor(0, 0, 0, 1); 134 gl.clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 136 gl.bindVertexArray(vao); 137 gl.enableVertexAttribArray(m_posLoc); 138 GLU_CHECK_CALL_ERROR(gl.useProgram(getProgram()), 139 gl 157 const Functions& gl = m_renderCtx.getFunctions(); local 232 initBuffer(const Functions& gl, GLuint seed, GLenum usage, GLuint buffer) argument [all...] |
H A D | es3fPolygonOffsetTests.cpp | 185 void verifyError (tcu::TestContext& testCtx, const glw::Functions& gl, GLenum expected) argument 187 deUint32 got = gl.getError(); 298 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 306 gl.genRenderbuffers(1, &colorRboId); 307 gl.bindRenderbuffer(GL_RENDERBUFFER, colorRboId); 308 gl.renderbufferStorage(GL_RENDERBUFFER, GL_RGBA4, m_targetSize, m_targetSize); 309 verifyError(m_testCtx, gl, GL_NO_ERROR); 311 gl.genRenderbuffers(1, &depthRboId); 312 gl.bindRenderbuffer(GL_RENDERBUFFER, depthRboId); 313 gl 370 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 498 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 617 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 767 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 880 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 997 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 1119 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local [all...] |
H A D | es3fShaderIndexingTests.cpp | 170 const glw::Functions& gl = m_renderCtx.getFunctions(); local 174 int arrLoc = gl.getUniformLocation(programID, "u_arr"); 185 gl.uniform1fv(arrLoc, 4, &arr[0]); 194 gl.uniform2fv(arrLoc, 4, arr[0].getPtr()); 203 gl.uniform3fv(arrLoc, 4, arr[0].getPtr()); 212 gl.uniform4fv(arrLoc, 4, arr[0].getPtr());
|
H A D | es3fShaderInvarianceTests.cpp | 209 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 232 gl.genBuffers(1, &m_arrayBuf); 233 gl.bindBuffer(GL_ARRAY_BUFFER, m_arrayBuf); 234 gl.bufferData(GL_ARRAY_BUFFER, (int)(triangles.size() * sizeof(tcu::Vec4)), &triangles[0], GL_STATIC_DRAW); 235 GLU_EXPECT_NO_ERROR(gl.getError(), "buffer gen"); 258 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 264 gl.clearColor (0.0f, 0.0f, 0.0f, 1.0f); 265 gl.clear (GL_COLOR_BUFFER_BIT); 266 gl.viewport (0, 0, m_renderSize, m_renderSize); 267 gl [all...] |