Lines Matching refs:glTex
753 static bool check_write_and_transfer_input(GrGLTexture* glTex, GrSurface* surface, in check_write_and_transfer_input() argument
755 if (!glTex) { in check_write_and_transfer_input()
765 if (GR_GL_TEXTURE_EXTERNAL == glTex->target()) { in check_write_and_transfer_input()
777 GrGLTexture* glTex = static_cast<GrGLTexture*>(surface->asTexture()); in onWritePixels() local
779 if (!check_write_and_transfer_input(glTex, surface, config)) { in onWritePixels()
784 GL_CALL(BindTexture(glTex->target(), glTex->textureID())); in onWritePixels()
786 return this->uploadTexData(glTex->config(), glTex->width(), glTex->height(), in onWritePixels()
787 glTex->origin(), glTex->target(), kWrite_UploadType, in onWritePixels()
821 GrGLTexture* glTex = static_cast<GrGLTexture*>(texture); in onTransferPixels() local
822 GrPixelConfig texConfig = glTex->config(); in onTransferPixels()
825 if (!check_write_and_transfer_input(glTex, texture, config)) { in onTransferPixels()
834 GL_CALL(BindTexture(glTex->target(), glTex->textureID())); in onTransferPixels()
876 GL_CALL(TexSubImage2D(glTex->target(), in onTransferPixels()