diff options
author | cblume <cblume@chromium.org> | 2016-02-26 13:20:48 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-26 13:20:48 -0800 |
commit | 55f2d2d57f4dd4109aa0c9dab6023373e3b928ec (patch) | |
tree | 6254a42add2b1442385ed153c6d1382403392287 /src/gpu/GrTexturePriv.h | |
parent | e015c2646f7f553ff10cd6b9783a3f4ededb63bf (diff) |
Creating functions for uploading a mipmapped texture.
BUG=476416
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1249543003
Review URL: https://codereview.chromium.org/1249543003
Diffstat (limited to 'src/gpu/GrTexturePriv.h')
-rw-r--r-- | src/gpu/GrTexturePriv.h | 8 |
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: |