Lines Matching defs:texture
146 SK_ABORT("Unexpected GL texture target.");
674 auto texture = GrGLTexture::MakeWrapped(this, mipmapStatus, desc,
677 // Pessimistically assume this external texture may have been bound to a FBO.
678 texture->baseLevelWasBoundToFBO();
680 return std::move(texture);
728 auto texture = GrGLTexture::MakeWrapped(this, mipmapStatus, desc,
731 return std::move(texture);
747 // We don't support rendering to a EXTERNAL texture.
867 bool GrGLGpu::onTransferPixelsTo(GrTexture* texture,
874 GrGLTexture* glTex = static_cast<GrGLTexture*>(texture);
892 SkASSERT(SkIRect::MakeSize(texture->dimensions()).contains(rect));
1228 // the texture bound to the other. The exception is the IMG multisample extension. With this
1229 // extension the texture is multisampled when rendered to and then auto-resolves it when it is
1329 // SkDEBUGFAIL("null texture");
1337 // texture that is not mipmap complete (considering the filter in use).
1398 // unbind the texture from the texture unit before binding it to the frame buffer
1487 // Unbind this texture from the scratch texture unit.
1540 // Unbind this texture from the scratch texture unit.
1596 // Unbind this texture from the scratch texture unit.
1615 // unbind the texture from the texture unit before binding it to the frame buffer
1730 // provides a hint about how this texture will be used
1914 // This must come after textures are flushed because a texture may need
2638 GrGLTexture* texture) {
2639 SkASSERT(texture);
2644 const int w = texture->width();
2648 const int h = texture->height();
2654 GrGpuResource::UniqueID textureID = texture->uniqueID();
2655 GrGLenum target = texture->target();
2658 GL_CALL(BindTexture(target, texture->textureID()));
2663 if (!this->caps()->mipmapSupport() || texture->mipmapped() == GrMipmapped::kNo) {
2666 SkASSERT(!texture->mipmapsAreDirty());
2670 auto timestamp = texture->parameters()->resetTimestamp();
2681 texture->parameters()->samplerOverriddenState();
2694 texture->parameters()->samplerOverriddenState();
2745 newNonsamplerState.fMaxMipmapLevel = texture->maxMipmapLevel();
2749 texture->parameters()->nonsamplerState();
2774 (texture->textureType() != GrTextureType::kExternal ||
2787 texture->parameters()->set(samplerStateToRecord, newNonsamplerState,
2855 // Bind the last texture unit since it is the least likely to be used by GrGLProgram.
2862 // correct texture.
2952 GrGLTexture* texture = static_cast<GrGLTexture*>(surface->asTexture());
2953 GrGLuint texID = texture->textureID();
2954 GrGLenum target = texture->target();
2967 texture->baseLevelWasBoundToFBO();
3200 // We need 1, 2, or 4 texture coordinates (depending on parity of each dimension):
3236 // Insert texture coordinate computation:
3387 // src rect edges in normalized texture space (0 to 1)
3471 bool GrGLGpu::onRegenerateMipMapLevels(GrTexture* texture) {
3472 auto glTex = static_cast<GrGLTexture*>(texture);
3490 int width = texture->width();
3491 int height = texture->height();
3493 SkASSERT(levelCount == texture->maxMipmapLevel() + 1);
3502 // Bind the texture, to get things configured for filtering.
3537 width = texture->width();
3538 height = texture->height();
3596 // FIXME: The render target will resolve automatically when its texture is bound,
3670 // Unbind this texture from the scratch texture unit.
3723 // Unbind this texture from the scratch texture unit.
3783 // We make a texture instead of a render target if we're using a
3791 // We have a BGRA extension that doesn't support BGRA render buffers. We can use a texture
3793 // multisampled-texture style extensions.
3896 // We don't want to have to recover the renderbuffer/texture IDs later to delete them. OpenGL
3897 // has this rule that if a renderbuffer/texture is deleted and a FBO other than the current FBO
3899 // renderbuffers/texture.
4117 std::unique_ptr<GrSemaphore> GrGLGpu::prepareTextureForCrossContextUsage(GrTexture* texture) {
4128 int GrGLGpu::TextureToCopyProgramIdx(GrTexture* texture) {
4129 switch (GrSLCombinedSamplerTypeForTextureType(texture->textureType())) {