/external/skia/bench/ |
D | GLInstancedArraysBench.cpp | 201 GR_GL_CALL(gl, GenBuffers(1, &posVBO)); in setupInstanceVbo() 202 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, posVBO)); in setupInstanceVbo() 203 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(positions), positions, GR_GL_STATIC_DRAW)); in setupInstanceVbo() 204 GR_GL_CALL(gl, EnableVertexAttribArray(0)); in setupInstanceVbo() 205 GR_GL_CALL(gl, VertexAttribPointer(0, 2, GR_GL_FLOAT, GR_GL_FALSE, 2 * sizeof(GrGLfloat), in setupInstanceVbo() 210 GR_GL_CALL(gl, GenBuffers(1, &instanceVBO)); in setupInstanceVbo() 211 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, instanceVBO)); in setupInstanceVbo() 212 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(colors), colors, GR_GL_STATIC_DRAW)); in setupInstanceVbo() 213 GR_GL_CALL(gl, EnableVertexAttribArray(1)); in setupInstanceVbo() 214 GR_GL_CALL(gl, VertexAttribPointer(1, 3, GR_GL_FLOAT, GR_GL_FALSE, 3 * sizeof(GrGLfloat), in setupInstanceVbo() [all …]
|
D | GLBench.cpp | 88 GR_GL_CALL(gl, ShaderSource(shader, 1, (const char**) &glslPtr, nullptr)); in CompileShader() 91 GR_GL_CALL(gl, CompileShader(shader)); in CompileShader() 96 GR_GL_CALL(gl, GetShaderiv(shader, GR_GL_COMPILE_STATUS, &success)); in CompileShader() 98 GR_GL_CALL(gl, GetShaderInfoLog(shader, 512, nullptr, infoLog)); in CompileShader() 113 GR_GL_CALL(gl, AttachShader(shaderProgram, vertexShader)); in CreateProgram() 114 GR_GL_CALL(gl, AttachShader(shaderProgram, fragmentShader)); in CreateProgram() 115 GR_GL_CALL(gl, LinkProgram(shaderProgram)); in CreateProgram() 120 GR_GL_CALL(gl, GetProgramiv(shaderProgram, GR_GL_LINK_STATUS, &success)); in CreateProgram() 122 GR_GL_CALL(gl, GetProgramInfoLog(shaderProgram, 512, nullptr, infoLog)); in CreateProgram() 125 GR_GL_CALL(gl, DeleteShader(vertexShader)); in CreateProgram() [all …]
|
D | GLVertexAttributesBench.cpp | 198 GR_GL_CALL(gl, GenBuffers(1, &fVBO)); in setup() 202 GR_GL_CALL(gl, ClearColor(0.03f, 0.03f, 0.03f, 1.0f)); in setup() 203 GR_GL_CALL(gl, Clear(GR_GL_COLOR_BUFFER_BIT)); in setup() 206 GR_GL_CALL(gl, UseProgram(fProgram)); in setup() 213 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, fVBO)); in glDraw() 214 GR_GL_CALL(gl, EnableVertexAttribArray(0)); in glDraw() 215 GR_GL_CALL(gl, VertexAttribPointer(0, 4, GR_GL_FLOAT, GR_GL_FALSE, (GrGLsizei)fStride, in glDraw() 221 GR_GL_CALL(gl, EnableVertexAttribArray(attribId)); in glDraw() 222 GR_GL_CALL(gl, VertexAttribPointer(attribId, 4, GR_GL_FLOAT, GR_GL_FALSE, in glDraw() 227 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, fVertices.count(), fVertices.begin(), in glDraw() [all …]
|
D | GLVec4ScalarBench.cpp | 234 GR_GL_CALL(gl, GenBuffers(1, &fVboId)); in setupSingleVbo() 235 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, fVboId)); in setupSingleVbo() 236 GR_GL_CALL(gl, EnableVertexAttribArray(0)); in setupSingleVbo() 237 GR_GL_CALL(gl, EnableVertexAttribArray(1)); in setupSingleVbo() 238 GR_GL_CALL(gl, VertexAttribPointer(0, 2, GR_GL_FLOAT, GR_GL_FALSE, sizeof(Vertex), in setupSingleVbo() 240 GR_GL_CALL(gl, VertexAttribPointer(1, 3, GR_GL_FLOAT, GR_GL_FALSE, sizeof(Vertex), in setupSingleVbo() 242 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(vertices), vertices, GR_GL_STATIC_DRAW)); in setupSingleVbo() 261 GR_GL_CALL(gl, UseProgram(fProgram)); in setup() 268 GR_GL_CALL(gl, DrawArrays(GR_GL_TRIANGLES, 0, kVerticesPerTri * kNumTriPerDraw)); in glDraw() 281 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, 0)); in teardown() [all …]
|
/external/skia/src/gpu/gl/ |
D | GrGLProgramDataManager.cpp | 58 GR_GL_CALL(fGpu->glInterface(), Uniform1i(sampler.fLocation, i)); in setSamplers() 68 GR_GL_CALL(fGpu->glInterface(), Uniform1i(image.fLocation, i)); in setImageStorages() 78 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i)); in set1i() 90 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv() 99 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0)); in set1f() 115 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv() 124 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1)); in set2f() 136 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fLocation, arrayCount, v)); in set2fv() 145 GR_GL_CALL(fGpu->glInterface(), Uniform3f(uni.fLocation, v0, v1, v2)); in set3f() 157 GR_GL_CALL(fGpu->glInterface(), Uniform3fv(uni.fLocation, arrayCount, v)); in set3fv() [all …]
|
D | GrGLUtil.h | 78 GR_GL_CALL(gl, GetIntegerv(e, p)); \ 84 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \ 90 GR_GL_CALL(gl, GetNamedFramebufferAttachmentParameteriv(fb, a, pname, p)); \ 96 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \ 102 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \ 110 GR_GL_CALL(gl, GetShaderPrecisionFormat(st, pt, range, precision)); \ 179 #define GR_GL_CALL(IFACE, X) \ macro
|
D | GrGLVertexArray.cpp | 60 GR_GL_CALL(gpu->glInterface(), EnableVertexAttribArray(index)); in set() 71 GR_GL_CALL(gpu->glInterface(), VertexAttribPointer(index, in set() 80 GR_GL_CALL(gpu->glInterface(), VertexAttribIPointer(index, in set() 98 GR_GL_CALL(gpu->glInterface(), DisableVertexAttribArray(i)); in disableUnusedArrays() 130 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, 0)); in bindWithIndexBuffer() 133 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, in bindWithIndexBuffer()
|
D | GrGLRenderTarget.cpp | 17 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X) 93 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 96 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 115 GR_GL_CALL(interface, BindFramebuffer(GR_GL_FRAMEBUFFER, this->renderFBOID())); in completeStencilAttachment() 116 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 120 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 124 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
|
D | GrGLPath.cpp | 187 GR_GL_CALL(gpu->glInterface(), in init_path_object_for_general_path() 246 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, pathCommands.count(), &pathCommands[0], in InitPathObjectPathData() 257 GR_GL_CALL(gpu->glInterface(), in InitPathObjectStroke() 259 GR_GL_CALL(gpu->glInterface(), in InitPathObjectStroke() 262 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_JOIN_STYLE, join)); in InitPathObjectStroke() 264 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_END_CAPS, cap)); in InitPathObjectStroke() 265 GR_GL_CALL(gpu->glInterface(), PathParameterf(pathID, GR_GL_PATH_STROKE_BOUND, 0.02f)); in InitPathObjectStroke() 269 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, 0, nullptr, 0, GR_GL_FLOAT, nullptr)); in InitPathObjectEmptyPath()
|
D | GrGLIRect.h | 41 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport() 45 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
|
D | GrGLGpu.cpp | 37 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X) 48 #define GL_ALLOC_CALL(iface, call) GR_GL_CALL(iface, call) 892 GR_GL_CALL(&interface, in allocate_and_populate_uncompressed_texture() 996 GR_GL_CALL(&interface, CompressedTexSubImage2D(target, in allocate_and_populate_compressed_texture() 1050 GR_GL_CALL(&interface, PixelStorei(GR_GL_UNPACK_ROW_LENGTH, 0)); in restore_pixelstore_state() 1053 GR_GL_CALL(&interface, PixelStorei(GR_GL_UNPACK_FLIP_Y, GR_GL_FALSE)); in restore_pixelstore_state() 1181 GR_GL_CALL(interface, PixelStorei(GR_GL_UNPACK_ROW_LENGTH, rowLength)); in uploadTexData() 1213 GR_GL_CALL(interface, PixelStorei(GR_GL_UNPACK_FLIP_Y, GR_GL_TRUE)); in uploadTexData() 1215 GR_GL_CALL(interface, PixelStorei(GR_GL_UNPACK_ALIGNMENT, in uploadTexData() 1483 GR_GL_CALL(interface, GenTextures(1, &idDesc.fInfo.fID)); in generate_gl_texture() [all …]
|
D | GrGLStencilAttachment.cpp | 25 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID)); in onRelease()
|
D | GrGLBuffer.cpp | 12 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X) 21 #define GL_ALLOC_CALL(iface, call) GR_GL_CALL(iface, call)
|
D | GrGLTexture.cpp | 18 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X)
|
D | GrGLProgram.cpp | 23 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
|
D | GrGLUniformHandler.cpp | 14 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X)
|
/external/skia/src/gpu/gl/builders/ |
D | GrGLShaderStringBuilder.cpp | 17 #define GL_CALL(X) GR_GL_CALL(gpu->glInterface(), X) 76 GR_GL_CALL(gli, ShaderSource(shaderId, 1, &glslChars, &glslLength)); in GrGLCompileAndAttachShader() 88 GR_GL_CALL(gli, CompileShader(shaderId)); in GrGLCompileAndAttachShader() 97 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_COMPILE_STATUS, &compiled)); in GrGLCompileAndAttachShader() 101 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_INFO_LOG_LENGTH, &infoLen)); in GrGLCompileAndAttachShader() 107 GR_GL_CALL(gli, GetShaderInfoLog(shaderId, infoLen+1, &length, (char*)log.get())); in GrGLCompileAndAttachShader() 116 GR_GL_CALL(gli, DeleteShader(shaderId)); in GrGLCompileAndAttachShader() 136 GR_GL_CALL(gli, AttachShader(programId, shaderId)); in GrGLCompileAndAttachShader()
|
D | GrGLProgramBuilder.cpp | 29 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X)
|
/external/skia/gm/ |
D | rectangletexture.cpp | 92 GR_GL_CALL(gl, GenTextures(1, &id)); in createRectangleTextureImg() 93 GR_GL_CALL(gl, BindTexture(TARGET, id)); in createRectangleTextureImg() 94 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_MAG_FILTER, in createRectangleTextureImg() 96 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_MIN_FILTER, in createRectangleTextureImg() 98 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_WRAP_S, in createRectangleTextureImg() 100 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_WRAP_T, in createRectangleTextureImg() 102 GR_GL_CALL(gl, TexImage2D(TARGET, 0, GR_GL_RGBA, width, height, 0, in createRectangleTextureImg() 119 GR_GL_CALL(gl, DeleteTextures(1, &id)); in createRectangleTextureImg()
|
/external/skia/tools/gpu/gl/ |
D | GLTestContext.cpp | 249 GR_GL_CALL(fGL.get(), Flush()); in submit() 255 GR_GL_CALL(fGL.get(), Finish()); in finish() 272 GR_GL_CALL(fGL.get(), GenTextures(1, &id)); in createTextureRectangle() 273 GR_GL_CALL(fGL.get(), BindTexture(GR_GL_TEXTURE_RECTANGLE, id)); in createTextureRectangle() 274 GR_GL_CALL(fGL.get(), TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_MAG_FILTER, in createTextureRectangle() 276 GR_GL_CALL(fGL.get(), TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_MIN_FILTER, in createTextureRectangle() 278 GR_GL_CALL(fGL.get(), TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_WRAP_S, in createTextureRectangle() 280 GR_GL_CALL(fGL.get(), TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_WRAP_T, in createTextureRectangle() 282 GR_GL_CALL(fGL.get(), TexImage2D(GR_GL_TEXTURE_RECTANGLE, 0, internalFormat, width, height, 0, in createTextureRectangle()
|
/external/skia/tests/ |
D | EGLImageTest.cpp | 41 GR_GL_CALL(glctx0->gl(), DeleteTextures(1, &texID0)); in cleanup() 115 GR_GL_CALL(glCtx1->gl(), ActiveTexture(GR_GL_TEXTURE0)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 116 GR_GL_CALL(glCtx1->gl(), BindTexture(backendTexture1->fTarget, backendTexture1->fID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 117 GR_GL_CALL(glCtx1->gl(), TexSubImage2D(backendTexture1->fTarget, 0, 0, 0, kSize, kSize, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 119 GR_GL_CALL(glCtx1->gl(), Finish()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | RectangleTextureTest.cpp | 140 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 163 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
/external/skia/tools/gpu/gl/angle/ |
D | GLTestContext_angle.cpp | 189 GR_GL_CALL(this->gl(), EGLDestroyImage(fDisplay, image)); in destroyEGLImage() 204 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture() 208 GR_GL_CALL(this->gl(), BindTexture(GR_GL_TEXTURE_EXTERNAL, texID)); in eglImageToExternalTexture() 210 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture() 215 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
|
/external/skia/tools/viewer/sk_app/ |
D | GLWindowContext.cpp | 84 GR_GL_CALL(fBackendContext.get(), GetIntegerv(GR_GL_FRAMEBUFFER_BINDING, &buffer)); in getBackbufferSurface()
|
/external/skia/tools/gpu/gl/egl/ |
D | CreatePlatformGLTestContext_egl.cpp | 229 GR_GL_CALL(this->gl(), EGLDestroyImage(fDisplay, image)); in destroyEGLImage()
|