Lines Matching refs:GrGLenum
52 return static_cast<GrGLenum>(GR_GL_NO_ERROR); \
64 static const GrGLenum gXfermodeEquation2Blend[] = {
110 static const GrGLenum gXfermodeCoeff2Blend[] = {
136 static int gl_target_to_binding_index(GrGLenum target) { in gl_target_to_binding_index()
148 GrGpuResource::UniqueID GrGLGpu::TextureUnitBindings::boundID(GrGLenum target) const { in boundID()
152 bool GrGLGpu::TextureUnitBindings::hasBeenModified(GrGLenum target) const { in hasBeenModified()
156 void GrGLGpu::TextureUnitBindings::setBoundID(GrGLenum target, GrGpuResource::UniqueID resourceID) { in setBoundID()
162 void GrGLGpu::TextureUnitBindings::invalidateForScratchUse(GrGLenum target) { in invalidateForScratchUse()
177 static GrGLenum filter_to_gl_mag_filter(GrSamplerState::Filter filter) { in filter_to_gl_mag_filter()
185 static GrGLenum filter_to_gl_min_filter(GrSamplerState::Filter filter, in filter_to_gl_min_filter()
206 static inline GrGLenum wrap_mode_to_gl_wrap(GrSamplerState::WrapMode wrapMode, in wrap_mode_to_gl_wrap()
253 GrGLenum minFilter = filter_to_gl_min_filter(state.filter(), state.mipmapMode()); in bindSampler()
254 GrGLenum magFilter = filter_to_gl_mag_filter(state.filter()); in bindSampler()
255 GrGLenum wrapX = wrap_mode_to_gl_wrap(state.wrapModeX(), fGpu->glCaps()); in bindSampler()
256 GrGLenum wrapY = wrap_mode_to_gl_wrap(state.wrapModeY(), fGpu->glCaps()); in bindSampler()
902 GrGLenum externalFormat = 0; in onTransferPixelsTo()
903 GrGLenum externalType = 0; in onTransferPixelsTo()
948 GrGLenum target, in uploadColorTypeTexData()
961 GrGLenum externalFormat; in uploadColorTypeTexData()
962 GrGLenum externalType; in uploadColorTypeTexData()
975 GrGLenum target, in uploadColorToTex()
979 GrGLenum externalFormat, externalType; in uploadColorToTex()
1014 GrGLenum target, in uploadTexData()
1016 GrGLenum externalFormat, in uploadTexData()
1017 GrGLenum externalType, in uploadTexData()
1064 GrGLenum target, in uploadCompressedTexData()
1070 GrGLenum internalFormat = caps.getTexImageOrStorageInternalFormat(format); in uploadCompressedTexData()
1089 GrGLenum error = GL_ALLOC_CALL(TexStorage2D(target, numMipLevels, internalFormat, in uploadCompressedTexData()
1126 GrGLenum error = GL_ALLOC_CALL(CompressedTexImage2D(target, in uploadCompressedTexData()
1146 bool GrGLGpu::renderbufferStorageMSAA(const GrGLContext& ctx, int sampleCount, GrGLenum format, in renderbufferStorageMSAA()
1149 GrGLenum error; in renderbufferStorageMSAA()
1180 GrGLenum colorRenderbufferFormat = 0; // suppress warning in createRenderTargetObjects()
1272 const GrGLInterface* interface, GrGLenum target) { in set_initial_texture_params()
1355 GrGLenum externalFormat, externalType; in onCreateTexture()
1564 GrGLenum error = GL_ALLOC_CALL(RenderbufferStorage( in getCompatibleStencilIndex()
1579 GrGLenum status; in getCompatibleStencilIndex()
1629 GrGLenum target, in createTexture()
1656 GrGLenum internalFormat = this->glCaps().getTexImageOrStorageInternalFormat(format); in createTexture()
1662 GrGLenum error = GL_ALLOC_CALL(TexStorage2D(target, levelCount, internalFormat, in createTexture()
1666 GrGLenum externalFormat, externalType; in createTexture()
1668 GrGLenum error = GR_GL_NO_ERROR; in createTexture()
1706 GrGLenum glFmt = GrGLFormatToEnum(sFmt); in makeStencilAttachment()
1716 GrGLenum error = GL_ALLOC_CALL(RenderbufferStorage(GR_GL_RENDERBUFFER, glFmt, in makeStencilAttachment()
1739 GrGLenum glFormat = this->glCaps().getRenderbufferInternalFormat(format.asGLFormat()); in makeMSAAAttachment()
1814 GrGLenum glmode = (Mode::kExclusive == windowState.mode()) ? GR_GL_EXCLUSIVE : GR_GL_INCLUSIVE; in flushWindowRectangles()
1905 GrGLenum GrGLGpu::bindBuffer(GrGpuBufferType type, const GrBuffer* buffer) { in bindBuffer()
2020 SkSTArray<2, GrGLenum> discardAttachments; in endCommandBuffer()
2111 GrGLenum externalFormat = 0; in readOrTransferPixelsFrom()
2112 GrGLenum externalType = 0; in readOrTransferPixelsFrom()
2228 GrGLenum status; in flushRenderTargetNoColorWrites()
2280 GrGLenum GrGLGpu::prepareToDraw(GrPrimitiveType primitiveType) { in prepareToDraw()
2372 GrGLenum colorDiscardAttachment = (rt->multisampleFBOID() == 0) ? GR_GL_COLOR in resolveRenderFBOs()
2386 GrGLenum gr_to_gl_stencil_op(GrStencilOp op) { in gr_to_gl_stencil_op()
2387 static const GrGLenum gTable[kGrStencilOpCount] = { in gr_to_gl_stencil_op()
2411 GrGLenum glFace) { in set_gl_stencil()
2412 GrGLenum glFunc = GrToGLStencilFunc(face.fTest); in set_gl_stencil()
2413 GrGLenum glFailOp = gr_to_gl_stencil_op(face.fFailOp); in set_gl_stencil()
2414 GrGLenum glPassOp = gr_to_gl_stencil_op(face.fPassOp); in set_gl_stencil()
2614 GrGLenum target = texture->target(); in bindTexture()
2637 GrGLenum minFilter = filter_to_gl_min_filter(samplerState.filter(), in bindTexture()
2711 static constexpr GrGLenum kRGBA[4] { in bindTexture()
2751 static constexpr GrGLenum kTargets[] = {GR_GL_TEXTURE_2D, GR_GL_TEXTURE_RECTANGLE, in onResetTextureBindings()
2813 void GrGLGpu::bindTextureToScratchUnit(GrGLenum target, GrGLint textureID) { in bindTextureToScratchUnit()
2907 void GrGLGpu::bindSurfaceFBOForPixelOps(GrSurface* surface, int mipLevel, GrGLenum fboTarget, in bindSurfaceFBOForPixelOps()
2914 GrGLenum target = texture->target(); in bindSurfaceFBOForPixelOps()
2936 void GrGLGpu::unbindSurfaceFBOForPixelOps(GrSurface* surface, int mipLevel, GrGLenum fboTarget) { in unbindSurfaceFBOForPixelOps()
2940 GrGLenum textureTarget = static_cast<GrGLTexture*>(surface->asTexture())->target(); in unbindSurfaceFBOForPixelOps()
2961 void GrGLGpu::bindFramebuffer(GrGLenum target, GrGLuint fboid) { in bindFramebuffer()
3441 GrGLenum target = glTex->target(); in onRegenerateMipMapLevels()
3819 GrGLenum renderBufferFormat = this->glCaps().getRenderbufferInternalFormat(format); in createTestingOnlyBackendRenderTarget()
3862 GrGLenum status; in createTestingOnlyBackendRenderTarget()
3993 GrGLenum result; in waitSync()
4054 GrGLenum GrGLGpu::getErrorAndCheckForOOM() { in getErrorAndCheckForOOM()
4060 GrGLenum error = this->fGLContext->glInterface()->fFunctions.fGetError(); in getErrorAndCheckForOOM()