diff options
Diffstat (limited to 'src/gpu/GrTextureProxyPriv.h')
-rw-r--r-- | src/gpu/GrTextureProxyPriv.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gpu/GrTextureProxyPriv.h b/src/gpu/GrTextureProxyPriv.h index 358369d516..519e96b497 100644 --- a/src/gpu/GrTextureProxyPriv.h +++ b/src/gpu/GrTextureProxyPriv.h @@ -31,14 +31,10 @@ public: // been instantiated or not. GrMipMapped proxyMipMapped() const { return fTextureProxy->fMipMapped; } - bool isGLTextureRectangleOrExternal() const { - return fTextureProxy->isGLTextureRectangleOrExternal(); + GrTextureType textureType() const { return fTextureProxy->fTextureType; } + bool hasRestrictedSampling() const { + return GrTextureTypeHasRestrictedSampling(this->textureType()); } - // We assume that if a texture is not a GL_TEXTURE_RECTANGLE or GL_TEXTURE_EXTERNAL then it is a - // GL_TEXTURE_2D - bool isGLTexture2D() const { return !fTextureProxy->isGLTextureRectangleOrExternal(); } - // We only support the clamp wrap mode with gl rectangle or external textures. - bool isClampOnly() const { return fTextureProxy->isGLTextureRectangleOrExternal(); } private: explicit GrTextureProxyPriv(GrTextureProxy* textureProxy) : fTextureProxy(textureProxy) {} |