/external/skia/bench/ |
GLBench.cpp | 67 GR_GL_CALL(gl, ShaderSource(shader, 1, &shaderSrc, nullptr)); 70 GR_GL_CALL(gl, CompileShader(shader)); 75 GR_GL_CALL(gl, GetShaderiv(shader, GR_GL_COMPILE_STATUS, &success)); 77 GR_GL_CALL(gl, GetShaderInfoLog(shader, 512, nullptr, infoLog)); 91 GR_GL_CALL(gl, AttachShader(shaderProgram, vertexShader)); 92 GR_GL_CALL(gl, AttachShader(shaderProgram, fragmentShader)); 93 GR_GL_CALL(gl, LinkProgram(shaderProgram)); 98 GR_GL_CALL(gl, GetProgramiv(shaderProgram, GR_GL_LINK_STATUS, &success)); 100 GR_GL_CALL(gl, GetProgramInfoLog(shaderProgram, 512, nullptr, infoLog)); 103 GR_GL_CALL(gl, DeleteShader(vertexShader)) [all...] |
GLInstancedArraysBench.cpp | 203 GR_GL_CALL(gl, GenBuffers(1, &posVBO)); 204 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, posVBO)); 205 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(positions), positions, GR_GL_STATIC_DRAW)); 206 GR_GL_CALL(gl, EnableVertexAttribArray(0)); 207 GR_GL_CALL(gl, VertexAttribPointer(0, 2, GR_GL_FLOAT, GR_GL_FALSE, 2 * sizeof(GrGLfloat), 212 GR_GL_CALL(gl, GenBuffers(1, &instanceVBO)); 213 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, instanceVBO)); 214 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(colors), colors, GR_GL_STATIC_DRAW)); 215 GR_GL_CALL(gl, EnableVertexAttribArray(1)); 216 GR_GL_CALL(gl, VertexAttribPointer(1, 3, GR_GL_FLOAT, GR_GL_FALSE, 3 * sizeof(GrGLfloat) [all...] |
GLVertexAttributesBench.cpp | 200 GR_GL_CALL(gl, GenBuffers(1, &fVBO)); 204 GR_GL_CALL(gl, ClearColor(0.03f, 0.03f, 0.03f, 1.0f)); 205 GR_GL_CALL(gl, Clear(GR_GL_COLOR_BUFFER_BIT)); 208 GR_GL_CALL(gl, UseProgram(fProgram)); 215 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, fVBO)); 216 GR_GL_CALL(gl, EnableVertexAttribArray(0)); 217 GR_GL_CALL(gl, VertexAttribPointer(0, 4, GR_GL_FLOAT, GR_GL_FALSE, (GrGLsizei)fStride, 223 GR_GL_CALL(gl, EnableVertexAttribArray(attribId)); 224 GR_GL_CALL(gl, VertexAttribPointer(attribId, 4, GR_GL_FLOAT, GR_GL_FALSE, 229 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, fVertices.count(), fVertices.begin() [all...] |
GLVec4ScalarBench.cpp | 236 GR_GL_CALL(gl, GenBuffers(1, &fVboId)); 237 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, fVboId)); 238 GR_GL_CALL(gl, EnableVertexAttribArray(0)); 239 GR_GL_CALL(gl, EnableVertexAttribArray(1)); 240 GR_GL_CALL(gl, VertexAttribPointer(0, 2, GR_GL_FLOAT, GR_GL_FALSE, sizeof(Vertex), 242 GR_GL_CALL(gl, VertexAttribPointer(1, 3, GR_GL_FLOAT, GR_GL_FALSE, sizeof(Vertex), 244 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(vertices), vertices, GR_GL_STATIC_DRAW)); 263 GR_GL_CALL(gl, UseProgram(fProgram)); 270 GR_GL_CALL(gl, DrawArrays(GR_GL_TRIANGLES, 0, kVerticesPerTri * kNumTriPerDraw)); 283 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, 0)) [all...] |
/external/skia/src/gpu/gl/builders/ |
GrGLShaderStringBuilder.cpp | 14 #define GL_CALL(X) GR_GL_CALL(gpu->glInterface(), X) 39 GR_GL_CALL(gli, ShaderSource(shaderId, 1, &sourceStr, &sourceLength)); 41 GR_GL_CALL(gli, ShaderSource(shaderId, count, strings, lengths)); 54 GR_GL_CALL(gli, CompileShader(shaderId)); 63 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_COMPILE_STATUS, &compiled)); 67 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_INFO_LOG_LENGTH, &infoLen)); 73 GR_GL_CALL(gli, GetShaderInfoLog(shaderId, infoLen+1, &length, (char*)log.get())); 78 GR_GL_CALL(gli, DeleteShader(shaderId)); 92 GR_GL_CALL(gli, AttachShader(programId, shaderId));
|
GrGLProgramBuilder.cpp | 28 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X)
|
/external/skia/src/gpu/gl/ |
GrGLProgramDataManager.cpp | 74 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fFSLocation, texUnit)); 77 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fVSLocation, texUnit)); 87 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fFSLocation, v0)); 90 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fVSLocation, v0)); 106 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fFSLocation, arrayCount, v)); 109 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fVSLocation, arrayCount, v)); 119 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fFSLocation, v0, v1)); 122 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fVSLocation, v0, v1)); 135 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fFSLocation, arrayCount, v)); 138 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fVSLocation, arrayCount, v)) [all...] |
GrGLUtil.h | 75 GR_GL_CALL(gl, GetIntegerv(e, p)); \ 81 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \ 87 GR_GL_CALL(gl, GetNamedFramebufferAttachmentParameteriv(fb, a, pname, p)); \ 93 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \ 99 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \ 107 GR_GL_CALL(gl, GetShaderPrecisionFormat(st, pt, range, precision)); \ 183 #define GR_GL_CALL(IFACE, X) \ 198 // same as GR_GL_CALL but stores the return value of the gl call in RET
|
GrGLIRect.h | 27 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); 31 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight));
|
GrGLVertexArray.cpp | 48 GR_GL_CALL(gpu->glInterface(), EnableVertexAttribArray(index)); 61 GR_GL_CALL(gpu->glInterface(), VertexAttribPointer(index, 70 GR_GL_CALL(gpu->glInterface(), VertexAttribIPointer(index, 89 GR_GL_CALL(gpu->glInterface(), DisableVertexAttribArray(i)); 121 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, ibufferID));
|
GrGLRenderTarget.cpp | 16 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X) 80 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, 83 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, 98 GR_GL_CALL(interface, BindFramebuffer(GR_GL_FRAMEBUFFER, this->renderFBOID())); 99 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, 103 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, 107 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
|
SkGLContext.cpp | 173 GR_GL_CALL(fGL, GenTextures(1, &id)); 174 GR_GL_CALL(fGL, BindTexture(GR_GL_TEXTURE_RECTANGLE, id)); 175 GR_GL_CALL(fGL, TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_MAG_FILTER, 177 GR_GL_CALL(fGL, TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_MIN_FILTER, 179 GR_GL_CALL(fGL, TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_WRAP_S, 181 GR_GL_CALL(fGL, TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_WRAP_T, 183 GR_GL_CALL(fGL, TexImage2D(GR_GL_TEXTURE_RECTANGLE, 0, internalFormat, width, height, 0,
|
GrGLStencilAttachment.cpp | 25 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID));
|
GrGLPath.cpp | 178 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, pathCommands.count(), &pathCommands[0], 235 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, pathCommands.count(), &pathCommands[0], 248 GR_GL_CALL(gpu->glInterface(), 250 GR_GL_CALL(gpu->glInterface(), 253 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_JOIN_STYLE, join)); 255 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_END_CAPS, cap)); 256 GR_GL_CALL(gpu->glInterface(), PathParameterf(pathID, GR_GL_PATH_STROKE_BOUND, 0.02f)); 260 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, 0, nullptr, 0, GR_GL_FLOAT, nullptr));
|
GrGLTexture.cpp | 13 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X)
|
GrGLBufferImpl.cpp | 11 #define GL_CALL(GPU, X) GR_GL_CALL(GPU->glInterface(), X)
|
GrGLUniformHandler.cpp | 14 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X)
|
GrGLGpu.h | 453 GR_GL_CALL(gpu->glInterface(), BindVertexArray(arrayID)); 481 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ARRAY_BUFFER, id)); 495 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, id));
|
GrGLProgram.cpp | 23 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
|
/external/skia/tests/ |
TextureStorageAllocator.cpp | 30 GR_GL_CALL(allocator->m_gl, GenTextures(1, &id)); 31 GR_GL_CALL(allocator->m_gl, BindTexture(target, id)); 32 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_MAG_FILTER, GR_GL_NEAREST)); 33 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_MIN_FILTER, GR_GL_NEAREST)); 34 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_WRAP_S, GR_GL_CLAMP_TO_EDGE)); 35 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_WRAP_T, GR_GL_CLAMP_TO_EDGE)); 36 GR_GL_CALL(allocator->m_gl, TexImage2D(target, 0, GR_GL_RGBA, width, height, 0, GR_GL_RGBA, 48 GR_GL_CALL(allocator->m_gl, DeleteTextures(1, &(info->fID)));
|
EGLImageTest.cpp | 35 GR_GL_CALL(glctx0->gl(), DeleteTextures(1, &texID0)); 149 GR_GL_CALL(glCtx1->gl(), ActiveTexture(GR_GL_TEXTURE0)); 150 GR_GL_CALL(glCtx1->gl(), BindTexture(backendTexture1->fTarget, backendTexture1->fID)); 151 GR_GL_CALL(glCtx1->gl(), TexSubImage2D(backendTexture1->fTarget, 0, 0, 0, kSize, kSize, 153 GR_GL_CALL(glCtx1->gl(), Finish());
|
RectangleTextureTest.cpp | 189 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); 203 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID));
|
/external/skia/gm/ |
rectangletexture.cpp | 90 GR_GL_CALL(gl, GenTextures(1, &id)); 91 GR_GL_CALL(gl, BindTexture(TARGET, id)); 92 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_MAG_FILTER, 94 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_MIN_FILTER, 96 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_WRAP_S, 98 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_WRAP_T, 100 GR_GL_CALL(gl, TexImage2D(TARGET, 0, GR_GL_RGBA, width, height, 0, 117 GR_GL_CALL(gl, DeleteTextures(1, &id));
|
/external/skia/src/gpu/gl/angle/ |
SkANGLEGLContext.cpp | 151 GR_GL_CALL(this->gl(), EGLDestroyImage(fDisplay, image)); 165 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); 169 GR_GL_CALL(this->gl(), BindTexture(GR_GL_TEXTURE_EXTERNAL, texID)); 171 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); 176 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID));
|
/external/skia/src/gpu/gl/egl/ |
SkCreatePlatformGLContext_egl.cpp | 224 GR_GL_CALL(this->gl(), EGLDestroyImage(fDisplay, image));
|