aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTexturePriv.h
diff options
context:
space:
mode:
authorGravatar cblume <cblume@chromium.org>2016-02-26 13:20:48 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-26 13:20:48 -0800
commit55f2d2d57f4dd4109aa0c9dab6023373e3b928ec (patch)
tree6254a42add2b1442385ed153c6d1382403392287 /src/gpu/GrTexturePriv.h
parente015c2646f7f553ff10cd6b9783a3f4ededb63bf (diff)
Creating functions for uploading a mipmapped texture.
Diffstat (limited to 'src/gpu/GrTexturePriv.h')
-rw-r--r--src/gpu/GrTexturePriv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrTexturePriv.h b/src/gpu/GrTexturePriv.h
index 165594c37a..fee7ed1f96 100644
--- a/src/gpu/GrTexturePriv.h
+++ b/src/gpu/GrTexturePriv.h
@@ -39,6 +39,14 @@ public:
return GrTexture::kNotAllocated_MipMapsStatus != fTexture->fMipMapsStatus;
}
+ void setMaxMipMapLevel(int maxMipMapLevel) const {
+ fTexture->fMaxMipMapLevel = maxMipMapLevel;
+ }
+
+ int maxMipMapLevel() const {
+ return fTexture->fMaxMipMapLevel;
+ }
+
static void ComputeScratchKey(const GrSurfaceDesc&, GrScratchKey*);
private: