Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: include/gpu/GrTexture.h

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Storing the max mipmap level in the texture. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/gpu/GrTexture.h
diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h
index ddba94065be2600847422bc887b89db46f62f9a0..67902982cf63e26f27b88c0597803e493ff6d655 100644
--- a/include/gpu/GrTexture.h
+++ b/include/gpu/GrTexture.h
@@ -46,6 +46,7 @@ public:
protected:
GrTexture(GrGpu*, LifeCycle, const GrSurfaceDesc&);
+ GrTexture(GrGpu*, LifeCycle, const GrSurfaceDesc&, bool wasMipMapDataProvided);
void validateDesc() const;
@@ -60,7 +61,9 @@ private:
};
MipMapsStatus fMipMapsStatus;
- // These two shift a fixed-point value into normalized coordinates
+ bool fIsMaxMipMapLevelSpecified;
+ int fMaxMipMapLevel;
bsalomon 2016/01/14 13:57:23 Could this be combined with the Desc's boolean? Ma
Chris Blume 2016/01/20 06:15:08 Done.
+ // These two shift a fixed-point value into normalized coordinates
// for this texture if the texture is power of two sized.
int fShiftFixedX;
int fShiftFixedY;
« no previous file with comments | « include/gpu/GrSurface.h ('k') | include/gpu/GrTextureProvider.h » ('j') | src/gpu/SkGr.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698