diff options
author | 2018-04-16 11:24:10 -0400 | |
---|---|---|
committer | 2018-04-16 17:05:20 +0000 | |
commit | e3204864899651a132d3387422d7fd599c21b3ac (patch) | |
tree | dcc19da5c650a435de56317f73044eb03b82a3c4 /src/gpu/GrTextureProxyPriv.h | |
parent | 45c92203ef43d09ca6444430bd4081ac97b71237 (diff) |
Don't allow ganesh to allocate mip maps for wrapped textures.
We will not allocate new mips on a wrapped texture but we will use mips
if the wrapped texture already has one. If we need mips for a draw this
will trigger a copy to occur.
Also some cleanup up of our InternalSurfaceFlags in general.
Bug: skia:7806
Change-Id: I7aa666478cc91bba6e0644b323825fcc9b49793a
Reviewed-on: https://skia-review.googlesource.com/121348
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTextureProxyPriv.h')
-rw-r--r-- | src/gpu/GrTextureProxyPriv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrTextureProxyPriv.h b/src/gpu/GrTextureProxyPriv.h index c7582d3ee9..b2b002864e 100644 --- a/src/gpu/GrTextureProxyPriv.h +++ b/src/gpu/GrTextureProxyPriv.h @@ -34,6 +34,10 @@ public: bool doesNotSupportMipMaps() const { return fTextureProxy->doesNotSupportMipMaps(); } bool isClampOnly() const { return fTextureProxy->isClampOnly(); } + void setDoesNotSupportMipMaps() { + fTextureProxy->setDoesNotSupportMipMaps(); + } + private: explicit GrTextureProxyPriv(GrTextureProxy* textureProxy) : fTextureProxy(textureProxy) {} GrTextureProxyPriv(const GrTextureProxyPriv&) {} // unimpl |