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

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: Cleaning up the allocated SkMipMap object. 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..aa2f5a1c78fe32d1312d76b192fa82826a8532dd 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,8 @@ private:
};
MipMapsStatus fMipMapsStatus;
- // These two shift a fixed-point value into normalized coordinates
+ int fMaxMipMapLevel;
+ // 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;

Powered by Google App Engine
This is Rietveld 408576698