Lines Matching defs:texture
547 bool GrGpu::transferPixelsTo(GrTexture* texture,
555 SkASSERT(texture);
558 if (texture->readOnly()) {
562 // We require that the write region is contained in the texture
563 if (!SkIRect::MakeSize(texture->dimensions()).contains(rect)) {
582 if (this->onTransferPixelsTo(texture,
589 this->didWriteToSurface(texture, kTopLeft_GrSurfaceOrigin, &rect);
616 // We require that the write region is contained in the texture
634 bool GrGpu::regenerateMipMapLevels(GrTexture* texture) {
636 SkASSERT(texture);
638 SkASSERT(texture->mipmapped() == GrMipmapped::kYes);
639 if (!texture->mipmapsAreDirty()) {
643 // NOTE: This goes away once we quit tracking mipmap state on the actual texture.
646 if (texture->readOnly()) {
649 if (this->onRegenerateMipMapLevels(texture)) {
650 texture->markMipmapsClean();
673 GrTexture* texture = surface->asTexture();
674 if (texture) {
676 texture->markMipmapsDirty();
678 texture->markMipmapsClean();