Lines Matching refs:glTex

774 static bool check_write_and_transfer_input(GrGLTexture* glTex) {  in check_write_and_transfer_input()  argument
775 if (!glTex) { in check_write_and_transfer_input()
780 if (GR_GL_TEXTURE_EXTERNAL == glTex->target()) { in check_write_and_transfer_input()
790 auto glTex = static_cast<GrGLTexture*>(surface->asTexture()); in onWritePixels() local
792 if (!check_write_and_transfer_input(glTex)) { in onWritePixels()
797 GL_CALL(BindTexture(glTex->target(), glTex->textureID())); in onWritePixels()
807 SkASSERT(!GrPixelConfigIsCompressed(glTex->config())); in onWritePixels()
808 return this->uploadTexData(glTex->config(), glTex->width(), glTex->height(), glTex->target(), in onWritePixels()
851 GrGLTexture* glTex = static_cast<GrGLTexture*>(texture); in onTransferPixels() local
852 GrPixelConfig texConfig = glTex->config(); in onTransferPixels()
856 SkASSERT(!GrPixelConfigIsCompressed(glTex->config())); in onTransferPixels()
858 if (!check_write_and_transfer_input(glTex)) { in onTransferPixels()
868 GL_CALL(BindTexture(glTex->target(), glTex->textureID())); in onTransferPixels()
911 GL_CALL(TexSubImage2D(glTex->target(), in onTransferPixels()
3773 auto glTex = static_cast<GrGLTexture*>(texture); in onRegenerateMipMapLevels() local
3775 if (GR_GL_TEXTURE_2D != glTex->target()) { in onRegenerateMipMapLevels()
3786 GrGLenum target = glTex->target(); in onRegenerateMipMapLevels()
3788 GL_CALL(BindTexture(target, glTex->textureID())); in onRegenerateMipMapLevels()
3789 GL_CALL(GenerateMipmap(glTex->target())); in onRegenerateMipMapLevels()
3808 this->bindTexture(0, GrSamplerState::ClampBilerp(), glTex); in onRegenerateMipMapLevels()
3856 glTex->textureParamsModified(); in onRegenerateMipMapLevels()
3873 glTex->textureID(), level)); in onRegenerateMipMapLevels()
3889 GrGLTexture::NonSamplerParams params = glTex->getCachedNonSamplerParams(); in onRegenerateMipMapLevels()
3891 glTex->setCachedParams(nullptr, params, this->getResetTimestamp()); in onRegenerateMipMapLevels()